mirror of
https://github.com/alibaba/higress.git
synced 2026-05-08 12:57:26 +08:00
fix(ai-proxy): migrate Qwen responses endpoint to new compatible path (#3722)
This commit is contained in:
@@ -30,7 +30,7 @@ const (
|
||||
qwenCompatibleChatCompletionPath = "/compatible-mode/v1/chat/completions"
|
||||
qwenCompatibleCompletionsPath = "/compatible-mode/v1/completions"
|
||||
qwenCompatibleTextEmbeddingPath = "/compatible-mode/v1/embeddings"
|
||||
qwenCompatibleResponsesPath = "/api/v2/apps/protocols/compatible-mode/v1/responses"
|
||||
qwenCompatibleResponsesPath = "/compatible-mode/v1/responses"
|
||||
qwenCompatibleFilesPath = "/compatible-mode/v1/files"
|
||||
qwenCompatibleRetrieveFilePath = "/compatible-mode/v1/files/{file_id}"
|
||||
qwenCompatibleRetrieveFileContentPath = "/compatible-mode/v1/files/{file_id}/content"
|
||||
|
||||
@@ -449,7 +449,7 @@ func RunQwenOnHttpRequestHeadersTests(t *testing.T) {
|
||||
|
||||
pathValue, hasPath := test.GetHeaderValue(requestHeaders, ":path")
|
||||
require.True(t, hasPath)
|
||||
require.Contains(t, pathValue, "/api/v2/apps/protocols/compatible-mode/v1/responses", "Path should use compatible mode responses path")
|
||||
require.Contains(t, pathValue, "/compatible-mode/v1/responses", "Path should use compatible mode responses path")
|
||||
})
|
||||
})
|
||||
}
|
||||
@@ -768,7 +768,7 @@ func RunQwenOnHttpRequestBodyTests(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "compatible responses path",
|
||||
path: "/api/v2/apps/protocols/compatible-mode/v1/responses",
|
||||
path: "/compatible-mode/v1/responses",
|
||||
},
|
||||
{
|
||||
name: "async aigc path",
|
||||
|
||||
Reference in New Issue
Block a user