mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-02 17:32:39 +00:00
fix(providers): add max_completion_tokens for openai o1 compatibility
This commit is contained in:
parent
b5302b6f3d
commit
ef10df9acb
@ -230,6 +230,7 @@ class OpenAICompatProvider(LLMProvider):
|
||||
"model": model_name,
|
||||
"messages": self._sanitize_messages(self._sanitize_empty_content(messages)),
|
||||
"max_tokens": max(1, max_tokens),
|
||||
"max_completion_tokens": max(1, max_tokens),
|
||||
"temperature": temperature,
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user