mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:11:49 +00:00
Cody: Remove preview from Mixtral8x22b Instruct model id (#61991)
Cody: Remove Preview from Mixtral8x22 Instruct model id
This commit is contained in:
parent
b9cb50c63a
commit
7121793116
@ -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: {
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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{
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user