You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @sgruhier! What ways have to you tried switching to Anthropic and what didn't work?
Since Anthropic uses a different API/SDK there will definitely need to be a couple tweaks to get it working (I have not yet tried myself). Your options are most likely either:
Use Anthropic's @anthropic-ai/sdk TypeScript lib and adjust the OpenAI code to use their equivalent APIs accordingly
Upgrade to the latest Vercel AI SDK which offers a unified API across all providers (OpenAI, Anthropic, etc)
My recommendation would probably be 2 for greatest flexibility/future proofing. This repo currently uses an older version of Vercel's AI SDK (v2) while the latest version is v3. I would actually love to see a PR that upgrades to this latest version.
Feature request
Is your feature request related to a problem? Please describe.
I tried many ways to switch to Anthropic Sonnet 3.5 but without any luck
Any hints, code snippets would be much appreciated.
The text was updated successfully, but these errors were encountered: