Skip to content

Commit bcfd8f3

Browse files
authored
Merge pull request #61 from kenotron/gpt-5.1
fixing the server.py for gpt-5.1
2 parents fb9b86d + 7bb25b5 commit bcfd8f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def convert_anthropic_to_litellm(anthropic_request: MessagesRequest) -> Dict[str
549549
litellm_request = {
550550
"model": anthropic_request.model, # it understands "anthropic/claude-x" format
551551
"messages": messages,
552-
"max_tokens": max_tokens,
552+
"max_completion_tokens": max_tokens,
553553
"temperature": anthropic_request.temperature,
554554
"stream": anthropic_request.stream,
555555
}

0 commit comments

Comments
 (0)