mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-11 07:52:31 +02: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:
parent
bc42a34e9a
commit
a7f73576a9
1 changed files with 2 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ class ClaudeProvider(LLMProvider):
|
|||
}
|
||||
if input.max_tokens:
|
||||
params["max_tokens"] = input.max_tokens
|
||||
else:
|
||||
params["max_tokens"] = 8192 # required by Anthropic API
|
||||
if input.tools:
|
||||
params["tools"] = [tool.to_dict() for tool in input.tools]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue