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

New builtin fetch alpha #645

Open
RobertCraigie opened this issue Dec 20, 2024 · 0 comments
Open

New builtin fetch alpha #645

RobertCraigie opened this issue Dec 20, 2024 · 0 comments

Comments

@RobertCraigie
Copy link
Collaborator

RobertCraigie commented Dec 20, 2024

We've been working on an alpha version of the SDK that alongside many other cleanups, migrates from node-fetch to builtin fetch.

You can try it out by installing the 0.34.0-alpha.0 version:

pnpm add @anthropic-ai/sdk@alpha

The core happy path of the SDK remains the same, your existing method calls should just work! However you may run into typing issues as we now expect that fetch is defined as a global.

There are many other small breaking changes which you may run into, we'll share a full migration guide as soon as possible.


Please share feedback on anything you think could be improved or if you run into any issues! Hope this is a nice early present for you all :)

Important

Unfortunately we cannot guarantee support over the holiday break (December 20th - January 6th inclusive) but we will go through every comment as soon as possible.

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