diff --git a/service/aiproxy/.gitignore b/service/aiproxy/.gitignore new file mode 100644 index 00000000000..8df7a82da5e --- /dev/null +++ b/service/aiproxy/.gitignore @@ -0,0 +1,2 @@ +aiproxy.db* +aiproxy \ No newline at end of file diff --git a/service/aiproxy/relay/adaptor/ali/adaptor.go b/service/aiproxy/relay/adaptor/ali/adaptor.go index b9c7f7dfabc..e5d72dbe95a 100644 --- a/service/aiproxy/relay/adaptor/ali/adaptor.go +++ b/service/aiproxy/relay/adaptor/ali/adaptor.go @@ -4,6 +4,7 @@ import ( "errors" "io" "net/http" + "strings" "github.com/gin-gonic/gin" "github.com/labring/sealos/service/aiproxy/relay/adaptor" @@ -29,6 +30,9 @@ func (a *Adaptor) GetRequestURL(meta *meta.Meta) (string, error) { case relaymode.ImagesGenerations: return meta.BaseURL + "/api/v1/services/aigc/text2image/image-synthesis", nil default: + if strings.HasPrefix(meta.ActualModelName, "qwen-vl") { + return meta.BaseURL + "/api/v1/services/aigc/multimodal-generation/generation", nil + } return meta.BaseURL + "/api/v1/services/aigc/text-generation/generation", nil } }