From 7121793116c28d4ca6267bcf6ceeff91dc40f902 Mon Sep 17 00:00:00 2001 From: Beatrix <68532117+abeatrix@users.noreply.github.com> Date: Wed, 17 Apr 2024 15:28:35 -0700 Subject: [PATCH] Cody: Remove preview from Mixtral8x22b Instruct model id (#61991) Cody: Remove Preview from Mixtral8x22 Instruct model id --- .../site-admin/dotcom/productSubscriptions/ModelBadges.tsx | 2 +- cmd/cody-gateway/shared/config/config.go | 2 +- .../dotcom/productsubscription/codygateway_dotcom_user.go | 2 +- internal/completions/client/fireworks/fireworks.go | 2 +- internal/completions/httpapi/chat.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/web/src/enterprise/site-admin/dotcom/productSubscriptions/ModelBadges.tsx b/client/web/src/enterprise/site-admin/dotcom/productSubscriptions/ModelBadges.tsx index 8f6c2e42757..38e95e2be01 100644 --- a/client/web/src/enterprise/site-admin/dotcom/productSubscriptions/ModelBadges.tsx +++ b/client/web/src/enterprise/site-admin/dotcom/productSubscriptions/ModelBadges.tsx @@ -61,7 +61,7 @@ function modelBadgeVariant(model: string, mode: 'completions' | 'embeddings'): ' case 'fireworks/accounts/fireworks/models/llama-v2-34b-code-instruct': case 'fireworks/accounts/fireworks/models/mistral-7b-instruct-4k': case 'fireworks/accounts/fireworks/models/mixtral-8x7b-instruct': - case 'fireworks/accounts/fireworks/models/mixtral-8x22b-instruct-preview': { + case 'fireworks/accounts/fireworks/models/mixtral-8x22b-instruct': { return 'secondary' } default: { diff --git a/cmd/cody-gateway/shared/config/config.go b/cmd/cody-gateway/shared/config/config.go index f492bcb4d8a..d5c8d49ba60 100644 --- a/cmd/cody-gateway/shared/config/config.go +++ b/cmd/cody-gateway/shared/config/config.go @@ -234,7 +234,7 @@ func (c *Config) Load() { "accounts/fireworks/models/llama-v2-34b-code-instruct", "accounts/fireworks/models/mistral-7b-instruct-4k", "accounts/fireworks/models/mixtral-8x7b-instruct", - "accounts/fireworks/models/mixtral-8x22b-instruct-preview", + "accounts/fireworks/models/mixtral-8x22b-instruct", // Deprecated model strings "accounts/fireworks/models/starcoder-3b-w8a16", "accounts/fireworks/models/starcoder-1b-w8a16", diff --git a/cmd/frontend/internal/dotcom/productsubscription/codygateway_dotcom_user.go b/cmd/frontend/internal/dotcom/productsubscription/codygateway_dotcom_user.go index cb3e151ed7a..b176d706d4a 100644 --- a/cmd/frontend/internal/dotcom/productsubscription/codygateway_dotcom_user.go +++ b/cmd/frontend/internal/dotcom/productsubscription/codygateway_dotcom_user.go @@ -365,7 +365,7 @@ func allowedModels(scope types.CompletionsFeature, isProUser bool) []string { "anthropic/" + anthropic.Claude3Sonnet, "anthropic/" + anthropic.Claude3Opus, "fireworks/" + fireworks.Mixtral8x7bInstruct, - "fireworks/" + fireworks.Mixtral8x22InstructPreview, + "fireworks/" + fireworks.Mixtral8x22Instruct, "openai/gpt-3.5-turbo", "openai/gpt-4-turbo", "openai/gpt-4-turbo-preview", diff --git a/internal/completions/client/fireworks/fireworks.go b/internal/completions/client/fireworks/fireworks.go index d8e1d8a827a..042c2e8132c 100644 --- a/internal/completions/client/fireworks/fireworks.go +++ b/internal/completions/client/fireworks/fireworks.go @@ -30,7 +30,7 @@ const Llama213bCodeInstruct = "accounts/fireworks/models/llama-v2-13b-code-instr const Llama234bCodeInstruct = "accounts/fireworks/models/llama-v2-34b-code-instruct" const Mistral7bInstruct = "accounts/fireworks/models/mistral-7b-instruct-4k" const Mixtral8x7bInstruct = "accounts/fireworks/models/mixtral-8x7b-instruct" -const Mixtral8x22InstructPreview = "accounts/fireworks/models/mixtral-8x22b-instruct-preview" +const Mixtral8x22Instruct = "accounts/fireworks/models/mixtral-8x22b-instruct" func NewClient(cli httpcli.Doer, endpoint, accessToken string) types.CompletionsClient { return &fireworksClient{ diff --git a/internal/completions/httpapi/chat.go b/internal/completions/httpapi/chat.go index ce1ddfce93b..caf0b3cfcfc 100644 --- a/internal/completions/httpapi/chat.go +++ b/internal/completions/httpapi/chat.go @@ -80,7 +80,7 @@ func isAllowedCustomChatModel(model string, isProUser bool) bool { "anthropic/" + anthropic.Claude3Sonnet, "anthropic/" + anthropic.Claude3Opus, "fireworks/" + fireworks.Mixtral8x7bInstruct, - "fireworks/" + fireworks.Mixtral8x22InstructPreview, + "fireworks/" + fireworks.Mixtral8x22Instruct, "openai/gpt-3.5-turbo", "openai/gpt-4-turbo", "openai/gpt-4-turbo-preview",