Skip to content

Commit

Permalink
Add claude-3-5-sonnet-20240620 model (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
conorbranagan authored Jun 20, 2024
1 parent c228c3b commit a7eb486
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/anthropic/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ type Model string

// https://docs.anthropic.com/claude/docs/models-overview
const (
// Highest level of intelligence and capability
Claude35Sonnet Model = "claude-3-5-sonnet-20240620"

// Most powerful model for highly complex tasks.
Claude3Opus Model = "claude-3-opus-20240229"

Expand Down Expand Up @@ -63,15 +66,15 @@ const (

func (m Model) IsImageCompatible() bool {
switch m {
case Claude3Haiku, Claude3Opus, Claude3Sonnet:
case Claude3Haiku, Claude3Opus, Claude3Sonnet, Claude35Sonnet:
return true
}
return false
}

func (m Model) IsMessageCompatible() bool {
switch m {
case Claude3Opus, Claude3Sonnet, Claude3Haiku, ClaudeV2_1:
case Claude3Opus, Claude3Sonnet, Claude3Haiku, ClaudeV2_1, Claude35Sonnet:
return true
}
return false
Expand Down

0 comments on commit a7eb486

Please sign in to comment.