fix: fix embedding

This commit is contained in:
CaIon
2024-03-21 17:39:05 +08:00
parent 031957714a
commit c4b3d3a975
6 changed files with 60 additions and 37 deletions

View File

@@ -1,12 +1,16 @@
package dto
type TextResponseWithError struct {
Choices []OpenAITextResponseChoice `json:"choices"`
Choices []OpenAITextResponseChoice `json:"choices"`
Object string `json:"object"`
Data []OpenAIEmbeddingResponseItem `json:"data"`
Model string `json:"model"`
Usage `json:"usage"`
Error OpenAIError `json:"error"`
}
type TextResponse struct {
Model string `json:"model"`
Choices []OpenAITextResponseChoice `json:"choices"`
Usage `json:"usage"`
}