vercel / ai

Build AI-powered applications with React, Svelte, Vue, and Solid
https://sdk.vercel.ai/docs
Other
9.56k stars 1.41k forks source link

Support tool use when using cohere provider #1331

Closed chanmathew closed 1 month ago

chanmathew commented 5 months ago

Feature Description

With Cohere's new Command R+ model, it's a very viable and much cheaper option that can reliably function call. I don't believe the current AI SDK correctly handles the Cohere function responses, would be great to see this added.

Use Case

Enabling tool use and function calling

Additional context

No response

lgrammel commented 3 months ago

https://github.com/vercel/ai/pull/1954