diff --git a/anthropic_models.go b/anthropic_models.go index b67099e..5a25f2f 100644 --- a/anthropic_models.go +++ b/anthropic_models.go @@ -5,6 +5,8 @@ package anthrogo type AnthropicModel string const ( + ModelClaude3Dot5Sonnet AnthropicModel = "claude-3-5-sonnet-20240620" + ModelClaude3Opus AnthropicModel = "claude-3-opus-20240229" ModelClaude3Sonnet AnthropicModel = "claude-3-sonnet-20240229" ModelClaude3Haiku AnthropicModel = "claude-3-haiku-20240307" diff --git a/examples/messages/message_basic.go b/examples/messages/message_basic.go index 9e0b054..c05b131 100644 --- a/examples/messages/message_basic.go +++ b/examples/messages/message_basic.go @@ -27,7 +27,7 @@ func main() { userPrompt = strings.TrimSuffix(userPrompt, "\n") resp, err := c.MessageRequest(context.Background(), anthrogo.MessagePayload{ - Model: anthrogo.ModelClaude3Opus, + Model: anthrogo.ModelClaude3Dot5Sonnet, Messages: []anthrogo.Message{{ Role: anthrogo.RoleTypeUser, Content: []anthrogo.MessageContent{{ diff --git a/examples/messages_stream/message_stream.go b/examples/messages_stream/message_stream.go index 69cc511..90f9c11 100644 --- a/examples/messages_stream/message_stream.go +++ b/examples/messages_stream/message_stream.go @@ -28,7 +28,7 @@ func main() { userPrompt = strings.TrimSuffix(userPrompt, "\n") r, _, err := c.MessageStreamRequest(context.Background(), anthrogo.MessagePayload{ - Model: anthrogo.ModelClaude3Opus, + Model: anthrogo.ModelClaude3Dot5Sonnet, Messages: []anthrogo.Message{{ Role: anthrogo.RoleTypeUser, Content: []anthrogo.MessageContent{{