Skip to content

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

fix: normalize name path before splitting

Michael Yang96cfb626415c
diff --git a/server/modelpath.go b/server/modelpath.go
index f09ff8e99..af3f36abe 100644
--- a/server/modelpath.go
+++ b/server/modelpath.go
@@ -46,6 +46,7 @@ func ParseModelPath(name string) ModelPath {
name = after
}
+ name = strings.ReplaceAll(name, string(os.PathSeparator), "/")
parts := strings.Split(name, "/")
switch len(parts) {
case 3: