[Bug] OpenAI o1 models misalignment
Wendong-Fan opened this issue · 0 comments
Wendong-Fan commented
Required prerequisites
- I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
- Consider asking first in a Discussion.
Motivation
o1 models don't support None
as tools
and tool_choice
input and don't support system message
openai.BadRequestError: Error code: 400 - {'error': {'message': "Unsupported value: 'messages[0].role' does not support 'system' with this model.", 'type': 'invalid_request_error', 'param': 'messages[0].role', 'code': 'unsupported_value'}}
openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid type for 'tools': expected an unsupported value, but got null instead.", 'type': 'invalid_request_error', 'param': 'tools', 'code': 'invalid_type'}}
Solution
No response
Alternatives
No response
Additional context
No response