Skip to content

Commit

Permalink
add new sonnet model
Browse files Browse the repository at this point in the history
  • Loading branch information
dleviminzi committed Jun 28, 2024
1 parent 36f86b5 commit e00835e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions anthropic_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/messages/message_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{{
Expand Down
2 changes: 1 addition & 1 deletion examples/messages_stream/message_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{{
Expand Down

0 comments on commit e00835e

Please sign in to comment.