fix(providers): add max_completion_tokens for openai o1 compatibility

This commit is contained in:
flobo3 2026-03-25 09:39:03 +03:00 committed by Xubin Ren
parent b5302b6f3d
commit ef10df9acb

View File

@ -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,
}