camel-ai/camel

[Bug] OpenAI o1 models misalignment

Wendong-Fan opened this issue · 0 comments

Required prerequisites

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