Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function modelBadgeVariant(model: string, mode: 'completions' | 'embeddings'): '
case 'fireworks/accounts/fireworks/models/starcoder-7b-w8a16':
case 'fireworks/accounts/fireworks/models/starcoder-3b-w8a16':
case 'fireworks/accounts/fireworks/models/starcoder-1b-w8a16':
case 'fireworks/accounts/fireworks/models/llama-v2-13b-code':
case 'fireworks/accounts/fireworks/models/llama-v2-13b-code-instruct':
case 'fireworks/accounts/fireworks/models/wizardcoder-15b':
return 'secondary'
Expand Down
1 change: 1 addition & 0 deletions cmd/cody-gateway/shared/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func (c *Config) Load() {
"accounts/fireworks/models/starcoder-7b-w8a16",
"accounts/fireworks/models/starcoder-3b-w8a16",
"accounts/fireworks/models/starcoder-1b-w8a16",
"accounts/fireworks/models/llama-v2-13b-code",
"accounts/fireworks/models/llama-v2-13b-code-instruct",
"accounts/fireworks/models/wizardcoder-15b",
}, ","),
Expand Down
2 changes: 2 additions & 0 deletions internal/completions/httpapi/codecompletion.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ func isAllowedCustomModel(model string) bool {
fallthrough
case "fireworks/accounts/fireworks/models/starcoder-1b-w8a16":
fallthrough
case "fireworks/accounts/fireworks/models/llama-v2-13b-code":
fallthrough
Comment on lines 50 to +54
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go pro tip (no need to change, just thought it might be interesting):

switch a {
case "A", "B", "C": return true
}

is a bit less verbose and more idiomatic :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, nice, yes that is prettier to read, I wasn't aware this syntax existed 🙈

case "fireworks/accounts/fireworks/models/llama-v2-13b-code-instruct":
fallthrough
case "fireworks/accounts/fireworks/models/wizardcoder-15b":
Expand Down