Skip to content

Commit

Permalink
feat: add model claude 3.5 sonnet. update nugets sdk aws bedrock & an…
Browse files Browse the repository at this point in the history
…thropic (#359)

Co-authored-by: Konstantin S <[email protected]>
  • Loading branch information
danijerez and HavenDV authored Jun 26, 2024
1 parent e3adb36 commit f903c31
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/Providers/Amazon.Bedrock/src/Predefined/Anthropic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ public class Claude3HaikuModel(BedrockProvider provider)

/// <inheritdoc />
public class Claude3OpusModel(BedrockProvider provider)
: AnthropicClaude3ChatModel(provider, id: "anthropic.claude-3-opus-20240229-v1:0");
: AnthropicClaude3ChatModel(provider, id: "anthropic.claude-3-opus-20240229-v1:0");

/// <inheritdoc />
public class Claude35SonnetModel(BedrockProvider provider)
: AnthropicClaude3ChatModel(provider, id: "anthropic.claude-3-5-sonnet-20240620-v1:0");
10 changes: 9 additions & 1 deletion src/Providers/Anthropic/libs/Anthropic/Predefined/Claude.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,12 @@ public class Claude3Sonnet(AnthropicProvider provider)
/// </summary>
[RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public class Claude3Opus(AnthropicProvider provider)
: AnthropicModel(provider, AnthropicModels.Claude3Opus);
: AnthropicModel(provider, AnthropicModels.Claude3Opus);

/// <summary>
/// Ideal balance of intelligence and speed for enterprise workloads
/// Max Tokens: 200K
/// </summary>
[RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public class Claude35Sonnet(AnthropicProvider provider)
: AnthropicModel(provider, AnthropicModels.Claude35Sonnet);

0 comments on commit f903c31

Please sign in to comment.