feat: Support /v1/models API in ai-proxy (#2164)

This commit is contained in:
Kent Dong
2025-05-06 15:53:13 +08:00
committed by GitHub
parent c9733d405c
commit 29370b18d7
5 changed files with 10 additions and 0 deletions

View File

@@ -358,6 +358,9 @@ func getApiName(path string) provider.ApiName {
if strings.HasSuffix(path, "/v1/files") {
return provider.ApiNameFiles
}
if strings.HasSuffix(path, "/v1/models") {
return provider.ApiNameModels
}
// cohere style
if strings.HasSuffix(path, "/v1/rerank") {
return provider.ApiNameCohereV1Rerank