Commit 29d5fa22 by JustSong

chore: update variable name

parent 27b290c5
...@@ -152,7 +152,7 @@ func embeddingRequestOpenAI2Baidu(request GeneralOpenAIRequest) *BaiduEmbeddingR ...@@ -152,7 +152,7 @@ func embeddingRequestOpenAI2Baidu(request GeneralOpenAIRequest) *BaiduEmbeddingR
baiduEmbeddingRequest.Input = []string{request.Input.(string)} baiduEmbeddingRequest.Input = []string{request.Input.(string)}
case []any: case []any:
for _, item := range request.Input.([]any) { for _, item := range request.Input.([]any) {
if str, isStr := item.(string); isStr { if str, ok := item.(string); ok {
baiduEmbeddingRequest.Input = append(baiduEmbeddingRequest.Input, str) baiduEmbeddingRequest.Input = append(baiduEmbeddingRequest.Input, str)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment