Skip to content

Commit b6d8969

Browse files
committed
deepseek ollama support
1 parent 1f0fa11 commit b6d8969

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

pkg/store/workspace.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"encoding/json"
55
"fmt"
66
"io/ioutil"
7+
"strings"
78

89
"github.com/brevdev/brev-cli/pkg/config"
910
"github.com/brevdev/brev-cli/pkg/entity"
@@ -691,6 +692,21 @@ var (
691692
)
692693

693694
func ValidateOllamaModel(model string, tag string) (bool, error) {
695+
// Special case for deepseek models
696+
if strings.HasPrefix(model, "deepseek-r1") {
697+
validTags := map[string]bool{
698+
"14b": true,
699+
"32b": true,
700+
"70b": true,
701+
"671b": true,
702+
"latest": true,
703+
}
704+
if tag == "" {
705+
tag = "latest"
706+
}
707+
return validTags[tag], nil
708+
}
709+
694710
restyClient := resty.New().SetBaseURL(config.NewConstants().GetOllamaAPIURL())
695711
if tag == "" {
696712
tag = "latest"

0 commit comments

Comments
 (0)