Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

case sensitive filepaths (#4366)

Michael Yangec14f6ceda63
diff --git a/types/model/name.go b/types/model/name.go
index b79374c3b..f32b25969 100644
--- a/types/model/name.go
+++ b/types/model/name.go
@@ -291,11 +291,9 @@ func (n Name) Filepath() string {
panic("illegal attempt to get filepath of invalid name")
}
return filepath.Join(
- strings.ToLower(filepath.Join(
- n.Host,
- n.Namespace,
- n.Model,
- )),
+ n.Host,
+ n.Namespace,
+ n.Model,
n.Tag,
)
}
diff --git a/types/model/name_test.go b/types/model/name_test.go
index fb584291e..27a8ccf8a 100644
--- a/types/model/name_test.go
+++ b/types/model/name_test.go
@@ -276,9 +276,9 @@ func TestFilepathAllocs(t *testing.T) {
allocs := testing.AllocsPerRun(1000, func() {
n.Filepath()
})
- var allowedAllocs float64 = 3
+ var allowedAllocs float64 = 1
if runtime.GOOS == "windows" {
- allowedAllocs = 5
+ allowedAllocs = 3
}
if allocs > allowedAllocs {
t.Errorf("allocs = %v; allowed %v", allocs, allowedAllocs)