geekan / MetaGPT

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
https://deepwisdom.ai/
MIT License
44.57k stars 5.31k forks source link

o1-mini 模型报错 #1531

Open MiangChen opened 4 days ago

MiangChen commented 4 days ago

Bug description

当model: "o1-mini"的时候, 会出现bug,

Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 86.782(s), this was the 1st time calling it. exp: Error code: 400 - {'error': {'message': "Unsupported value: 'messages[0].role' does not support 'system' with this model.     (request id: 20241022224433123206060zGFL5WKQ) (request id: 2024102222443296560188YMHkpVsa) (request id: 2024102222443292570479MKCUGfgl) (request id: 20241022224431807183774j4pHfuUY)", 'type': 'invalid_request_error', 'param': 'messages[0].role', 'code': 'unsupported_value'}}

Bug solved method

Environment information

Screenshots or logs

image

better629 commented 3 days ago

refs to https://docs.deepwisdom.ai/main/en/guide/get_started/configuration/llm_api_configuration.html#steps

geekan commented 3 days ago

I feel it should be made into a default configuration that can be triggered by the model name.