#Odd 17-decimal-places error with new OpenAI Agents SDK:

1 messages · Page 1 of 1 (latest)

copper apex
#

When I run the new agents SDK, I occasionally get this error:

lib/python3.13/site-packages/openai/_base_client.py", line 1562, in _request
raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid 'input[8].results[0].score': max decimal places exceeded. Expected a value with at most 16 decimal places, but got a value with 17 decimal places instead.", 'type': 'invalid_request_error', 'param': 'input[8].results[0].score', 'code': 'decimal_max_decimal_places_exceeded'}}

anyone know how to fix? I can error-handle and retry but it's a bit hacky....