mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:51:55 +00:00
Add Llama Code 13b to all PLG users and remove unused model conversation (#60332)
This commit is contained in:
parent
0d24f22744
commit
025a603207
@ -374,6 +374,7 @@ func allowedModels(scope types.CompletionsFeature, isProUser bool) []string {
|
||||
"anthropic/claude-instant-1.2-cyan",
|
||||
"anthropic/claude-instant-1.2",
|
||||
"fireworks/starcoder",
|
||||
"fireworks/" + fireworks.Llama213bCode,
|
||||
// TODO: Remove the specific model identifiers below when Cody Gateway for PLG was updated.
|
||||
"fireworks/" + fireworks.Starcoder16b,
|
||||
"fireworks/" + fireworks.Starcoder7b,
|
||||
|
||||
@ -45,13 +45,9 @@ func NewCodeCompletionsHandler(logger log.Logger, db database.DB, test guardrail
|
||||
|
||||
func allowedCustomModel(model string) string {
|
||||
switch model {
|
||||
// These virtual model strings allow the server to choose the model.
|
||||
// TODO: Remove the specific model identifiers below when Cody Gateway for PLG was updated.
|
||||
case "fireworks/starcoder-16b":
|
||||
return "fireworks/" + fireworks.Starcoder16b
|
||||
case "fireworks/starcoder-7b":
|
||||
return "fireworks/" + fireworks.Starcoder7b
|
||||
case "fireworks/starcoder",
|
||||
"fireworks/starcoder-16b",
|
||||
"fireworks/starcoder-7b",
|
||||
"fireworks/" + fireworks.Starcoder16b,
|
||||
"fireworks/" + fireworks.Starcoder7b,
|
||||
"fireworks/" + fireworks.Llama27bCode,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user