Merge pull request #61 from kenotron/gpt-5.1

fixing the server.py for gpt-5.1
This commit is contained in:
Winston Du 2025-11-18 20:35:30 -08:00 committed by GitHub
commit bcfd8f37aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -549,7 +549,7 @@ def convert_anthropic_to_litellm(anthropic_request: MessagesRequest) -> Dict[str
litellm_request = {
"model": anthropic_request.model, # it understands "anthropic/claude-x" format
"messages": messages,
"max_tokens": max_tokens,
"max_completion_tokens": max_tokens,
"temperature": anthropic_request.temperature,
"stream": anthropic_request.stream,
}