fix: fix embedding
This commit is contained in:
1 parent
082fb544b6
commit
1004e3a1d5
6 files changed
+60
-37
No files matched your search
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user