mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-14 05:43:29 +08:00
Update src/llm/providers/claude.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
@@ -57,6 +57,8 @@ class ClaudeProvider(LLMProvider):
|
|||||||
}
|
}
|
||||||
if input.max_tokens:
|
if input.max_tokens:
|
||||||
params["max_tokens"] = input.max_tokens
|
params["max_tokens"] = input.max_tokens
|
||||||
|
else:
|
||||||
|
params["max_tokens"] = 8192 # required by Anthropic API
|
||||||
if input.tools:
|
if input.tools:
|
||||||
params["tools"] = [tool.to_dict() for tool in input.tools]
|
params["tools"] = [tool.to_dict() for tool in input.tools]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user