feat: 支持SparkDesk-v3.1-128K以及hunyuan-vision
This commit is contained in:
parent
b518292ce8
commit
0525e5b374
@ -272,9 +272,9 @@ func xunfeiMakeRequest(textRequest model.GeneralOpenAIRequest, domain, authUrl,
|
|||||||
}
|
}
|
||||||
|
|
||||||
func parseAPIVersionByModelName(modelName string) string {
|
func parseAPIVersionByModelName(modelName string) string {
|
||||||
parts := strings.Split(modelName, "-")
|
index := strings.IndexAny(modelName, "-")
|
||||||
if len(parts) == 2 {
|
if index != -1 {
|
||||||
return parts[1]
|
return modelName[index+1:]
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user