-
Notifications
You must be signed in to change notification settings - Fork 944
.NET: Change sample to use official Anthropic C# package #2471
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR migrates the MultiModelService sample from the unofficial Anthropic.SDK package to the official Anthropic C# package, simplifying the client initialization and aligning with the official SDK.
- Updates the Anthropic client initialization to use the official package's API
- Removes the deprecated Anthropic.SDK package reference and version entry
- Maintains consistency with AWS Bedrock and OpenAI client initialization patterns
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
dotnet/samples/GettingStarted/Workflows/_Foundational/05_MultiModelService/Program.cs |
Updates Anthropic client initialization to use the official Anthropic package API instead of Anthropic.SDK |
dotnet/samples/GettingStarted/Workflows/_Foundational/05_MultiModelService/05_MultiModelService.csproj |
Changes package reference from "Anthropic.SDK" to "Anthropic" |
dotnet/Directory.Packages.props |
Removes the Anthropic.SDK version entry (official Anthropic package version already exists at line 14) |
No description provided.