From 3da12e99d97c58a3c7370475f4e76565699b108e Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 13 Aug 2023 00:50:26 +0800 Subject: [PATCH] chore: update variable name --- controller/relay-baidu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/relay-baidu.go b/controller/relay-baidu.go index 78b4c226..ad20d6d6 100644 --- a/controller/relay-baidu.go +++ b/controller/relay-baidu.go @@ -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) } }