Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Please enable function calling before using the agent #809

Closed
amolkhatri opened this issue Aug 30, 2024 · 3 comments
Closed

Error Please enable function calling before using the agent #809

amolkhatri opened this issue Aug 30, 2024 · 3 comments

Comments

@amolkhatri
Copy link

Describe the bug
Not able to run the agent. Its failing with "Please enable function calling before using the agent." My config is as follow

model: openai
function_calling: true
clients:
- type: openai
  api_key: <My api key>
  supports_function_calling: true


command I am running

.agent todo

@sigoden
Copy link
Owner

sigoden commented Aug 30, 2024

@amolkhatri
Does <aichat-config-dir>/functions/functions.json exist?

If not, add tools.txt and run argc build. ( see more details at https://github.com/sigoden/llm-functions)

@amolkhatri
Copy link
Author

Worked. Thanks.

However, I think ReadMe.md should specify that user needs to add function_calling: true in config.yml for enabling function calling.

@sigoden
Copy link
Owner

sigoden commented Aug 30, 2024

#812 soved this.

@sigoden sigoden closed this as completed Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants