You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The JSON response format's input structure for OpenAI's API appears to have changed to { "type": "json_object" }, causing compatibility issues with existing implementations.
Describe the bug
The JSON response format's input structure for OpenAI's API appears to have changed to { "type": "json_object" }, causing compatibility issues with existing implementations.
To Reproduce
Code to reproduce
Expected behaviour
openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid type for 'response_format': expected an object, but got a string instead.", 'type': 'invalid_request_error', 'param': 'response_format', 'code': 'invalid_type'}}
**Additional context
it should be
kwargs["response_format"] = {"type": response_format}
distilabel/src/distilabel/llms/openai.py
Line 304 in 844165f
The text was updated successfully, but these errors were encountered: