mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
TypeError: AsyncClient.chat() got an unexpected keyword argument 'tools' #221
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SCP001C on GitHub (Feb 17, 2025).
When running the example code from: async-tools.py I got error message "TypeError: AsyncClient.chat() got an unexpected keyword argument 'tools'".
Seems like chat() doesn't support argument "tools" anymore. Is there any solution to implement tool calling with Ollama? Thank you very much.
@ParthSareen commented on GitHub (Feb 18, 2025):
Hey! Seems like you might be running an older version of the library? What version are you on? Is it
0.4.7?