Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 9bbce03

Browse files
Add Haiku to Cody Gateway and PLG (#61126)
1 parent e18cf7a commit 9bbce03

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cmd/cody-gateway/shared/config/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ func (c *Config) Load() {
150150
"claude-instant-1.2-cyan",
151151
"claude-3-opus-20240229",
152152
"claude-3-sonnet-20240229",
153+
"claude-3-haiku-20240307",
153154
}, ","),
154155
"Anthropic models that can be used."))
155156
if c.Anthropic.AccessToken != "" && len(c.Anthropic.AllowedModels) == 0 {

cmd/frontend/internal/dotcom/productsubscription/codygateway_dotcom_user.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ func allowedModels(scope types.CompletionsFeature, isProUser bool) []string {
348348

349349
if !isProUser {
350350
return []string{
351+
"anthropic/claude-3-haiku-20240307",
351352
// Remove after the Claude 3 rollout is complete
352353
"anthropic/claude-2.0",
353354
"anthropic/claude-instant-v1",
@@ -359,6 +360,7 @@ func allowedModels(scope types.CompletionsFeature, isProUser bool) []string {
359360
return []string{
360361
"anthropic/claude-3-sonnet-20240229",
361362
"anthropic/claude-3-opus-20240229",
363+
"anthropic/claude-3-haiku-20240307",
362364
"fireworks/" + fireworks.Mixtral8x7bInstruct,
363365
"openai/gpt-3.5-turbo",
364366
"openai/gpt-4-1106-preview",
@@ -374,6 +376,7 @@ func allowedModels(scope types.CompletionsFeature, isProUser bool) []string {
374376
}
375377
case types.CompletionsFeatureCode:
376378
return []string{
379+
"anthropic/claude-3-haiku-20240307",
377380
"anthropic/claude-instant-v1",
378381
"anthropic/claude-instant-1",
379382
"anthropic/claude-instant-1.2-cyan",

0 commit comments

Comments
 (0)