Cody: Remove preview from Mixtral8x22b Instruct model id (#61991)

Cody: Remove Preview from Mixtral8x22 Instruct model id
This commit is contained in:
Beatrix 2024-04-17 15:28:35 -07:00 committed by GitHub
parent b9cb50c63a
commit 7121793116
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -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: {

View File

@ -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",

View File

@ -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",

View File

@ -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{

View File

@ -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",