MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

openai new models dont work

Open cranyy opened this issue 10 months ago • 4 comments

The new models give max_temperature unknown error and cannot be used.

cranyy avatar Feb 03 '25 00:02 cranyy

temperature?

seehi avatar Feb 12 '25 09:02 seehi

my bad, i meant tokens -- ^^^^^^^^^^^^^^^^^^^^

File "E:\MetaStocky\env\Lib\site-packages\openai\_base_client.py", line 1625, in _request
   raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'error': {'message': "Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.", 'type': 'invalid_request_error', 'param': 'max_tokens', 'code': 'unsupported_parameter'}}

llm: api_type: "openai" # or azure / ollama / groq etc. model: "o3-mini" # or gpt-3.5-turbo base_url: "https://api.openai.com/v1" # or forward url / other llm url api_key: "sk-proj-

cranyy avatar Feb 12 '25 14:02 cranyy

https://github.com/geekan/MetaGPT/pull/1710

seehi avatar Feb 25 '25 08:02 seehi

This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.

github-actions[bot] avatar Apr 01 '25 00:04 github-actions[bot]

This issue was closed due to 45 days of inactivity. If you feel this issue is still relevant, please reopen the issue to continue the discussion.

github-actions[bot] avatar May 24 '25 00:05 github-actions[bot]