From 434e9d7695e9a8a6a39de4b935cb80bc08cf7d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9C=8D=E9=9B=A8=E4=BD=B3?= Date: Mon, 10 Mar 2025 16:22:40 +0800 Subject: [PATCH] Fix: Under Ali's large model, the task ID result for image retrieval is incorrect. Reason: The URL is incomplete, missing baseurl. Solution: Add baseurl. url := fmt.Sprintf("%s/api/v1/tasks/%s", info.BaseUrl, taskID). --- relay/channel/ali/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/channel/ali/image.go b/relay/channel/ali/image.go index 160fabf9..5cbf16b5 100644 --- a/relay/channel/ali/image.go +++ b/relay/channel/ali/image.go @@ -27,7 +27,7 @@ func oaiImage2Ali(request dto.ImageRequest) *AliImageRequest { } func updateTask(info *relaycommon.RelayInfo, taskID string, key string) (*AliResponse, error, []byte) { - url := fmt.Sprintf("/api/v1/tasks/%s", taskID) + url := fmt.Sprintf("%s/api/v1/tasks/%s", info.BaseUrl, taskID) var aliResponse AliResponse