chore: update variable name

This commit is contained in:
JustSong 2023-08-13 00:50:26 +08:00
parent 4ef5e2020c
commit 3da12e99d9

View File

@ -152,7 +152,7 @@ func embeddingRequestOpenAI2Baidu(request GeneralOpenAIRequest) *BaiduEmbeddingR
baiduEmbeddingRequest.Input = []string{request.Input.(string)}
case []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)
}
}