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

Can I use Cohere API? #76

Open
Dexterity104 opened this issue Jul 20, 2024 · 0 comments
Open

Can I use Cohere API? #76

Dexterity104 opened this issue Jul 20, 2024 · 0 comments

Comments

@Dexterity104
Copy link

I want to use Cohere but farfalle doesn't support it yet.
So I tried to use it, but the following error occurs. It seems that the usage of Tool is different in Cohere.
How to solve this problem?

{ "tools": [ { "type": "function", "function": { "name": "QueryPlan", "description": "Correctly extracted QueryPlan with all the required parameters with correct types", "parameters": { "$defs": { "QueryPlanStep": { "properties": { "id": { "description": "Unique id of the step", "title": "Id", "type": "integer" }, "step": { "title": "Step", "type": "string" }, "dependencies": { "description": "List of step ids that this step depends on information from", "items": { "type": "integer" }, "title": "Dependencies", "type": "array" } }, "required": ["id", "step"], "title": "QueryPlanStep", "type": "object" } }, "properties": { "steps": { "description": "The steps to complete the query", "items": { "$ref": "#/$defs/QueryPlanStep" }, "maxItems": 4, "title": "Steps", "type": "array" } }, "required": ["steps"], "type": "object" } } } ], "tool_choice": { "type": "function", "function": { "name": "QueryPlan" } }}

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

1 participant