We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f0fa11 commit b6d8969Copy full SHA for b6d8969
1 file changed
pkg/store/workspace.go
@@ -4,6 +4,7 @@ import (
4
"encoding/json"
5
"fmt"
6
"io/ioutil"
7
+ "strings"
8
9
"github.com/brevdev/brev-cli/pkg/config"
10
"github.com/brevdev/brev-cli/pkg/entity"
@@ -691,6 +692,21 @@ var (
691
692
)
693
694
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
+
710
restyClient := resty.New().SetBaseURL(config.NewConstants().GetOllamaAPIURL())
711
if tag == "" {
712
tag = "latest"
0 commit comments