Open sgruhier opened 5 months ago
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:
@anthropic-ai/sdk
TypeScript lib and adjust the OpenAI code to use their equivalent APIs accordinglyMy 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.