提交
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"mime/multipart"
|
||||
"strings"
|
||||
|
||||
commonHttp "gitee.com/red-future---jilin-g/common/http"
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
@@ -185,7 +186,7 @@ func (c *Client) UploadDocumentFromText(ctx context.Context, datasetId, content,
|
||||
}
|
||||
|
||||
// 发送请求
|
||||
client := c.HTTPClient.Clone()
|
||||
client := commonHttp.Httpclient.Clone()
|
||||
client.SetHeader("Authorization", "Bearer "+c.APIKey)
|
||||
client.SetHeader("Content-Type", writer.FormDataContentType())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user