add encoding_format

Signed-off-by: wozulong <>
This commit is contained in:
wozulong
2024-08-26 18:39:13 +08:00
parent fefe5913e9
commit 27b034674d
5 changed files with 10 additions and 9 deletions

View File

@@ -50,9 +50,9 @@ type BaiduEmbeddingRequest struct {
}
type BaiduEmbeddingData struct {
Object string `json:"object"`
Embedding []float64 `json:"embedding"`
Index int `json:"index"`
Object string `json:"object"`
Embedding any `json:"embedding"`
Index int `json:"index"`
}
type BaiduEmbeddingResponse struct {