mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-21 09:46:37 +08:00
add encoding_format
Signed-off-by: wozulong <>
This commit is contained in:
parent
fefe5913e9
commit
27b034674d
@ -33,6 +33,7 @@ type GeneralOpenAIRequest struct {
|
|||||||
TopLogProbs int `json:"top_logprobs,omitempty"`
|
TopLogProbs int `json:"top_logprobs,omitempty"`
|
||||||
Dimensions int `json:"dimensions,omitempty"`
|
Dimensions int `json:"dimensions,omitempty"`
|
||||||
ParallelToolCalls bool `json:"parallel_Tool_Calls,omitempty"`
|
ParallelToolCalls bool `json:"parallel_Tool_Calls,omitempty"`
|
||||||
|
EncodingFormat string `json:"encoding_format,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OpenAITools struct {
|
type OpenAITools struct {
|
||||||
|
@ -41,9 +41,9 @@ type OpenAITextResponse struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type OpenAIEmbeddingResponseItem struct {
|
type OpenAIEmbeddingResponseItem struct {
|
||||||
Object string `json:"object"`
|
Object string `json:"object"`
|
||||||
Index int `json:"index"`
|
Index int `json:"index"`
|
||||||
Embedding []float64 `json:"embedding"`
|
Embedding any `json:"embedding"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OpenAIEmbeddingResponse struct {
|
type OpenAIEmbeddingResponse struct {
|
||||||
|
@ -36,8 +36,8 @@ type AliEmbeddingRequest struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type AliEmbedding struct {
|
type AliEmbedding struct {
|
||||||
Embedding []float64 `json:"embedding"`
|
Embedding any `json:"embedding"`
|
||||||
TextIndex int `json:"text_index"`
|
TextIndex int `json:"text_index"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type AliEmbeddingResponse struct {
|
type AliEmbeddingResponse struct {
|
||||||
|
@ -50,9 +50,9 @@ type BaiduEmbeddingRequest struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type BaiduEmbeddingData struct {
|
type BaiduEmbeddingData struct {
|
||||||
Object string `json:"object"`
|
Object string `json:"object"`
|
||||||
Embedding []float64 `json:"embedding"`
|
Embedding any `json:"embedding"`
|
||||||
Index int `json:"index"`
|
Index int `json:"index"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type BaiduEmbeddingResponse struct {
|
type BaiduEmbeddingResponse struct {
|
||||||
|
@ -23,5 +23,5 @@ type OllamaEmbeddingRequest struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type OllamaEmbeddingResponse struct {
|
type OllamaEmbeddingResponse struct {
|
||||||
Embedding []float64 `json:"embedding,omitempty"`
|
Embedding any `json:"embedding,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user