Added tools on the second call to Claude for avoiding error 400. (#136)

This commit is contained in:
hippolyteleveque 2025-02-17 11:56:19 +01:00 • committed by GitHub
commit 02a82301dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -200,6 +200,7 @@ async def process_query(self, query: str) -> str:
model="claude-3-5-sonnet-20241022",
max_tokens=1000,
messages=messages,
tools=available_tools
)
final_text.append(response.content[0].text)