Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertOpenAIRequestToGemini ¶
func ConvertOpenAIRequestToGemini(openAIReq *EmbedRequest, model *genai.EmbeddingModel) (*genai.EmbeddingBatch, error)
Types ¶
type EmbedRequest ¶
type EmbedResponse ¶
type EmbedResponse struct { Object string `json:"object"` Data []*EmbedResponseData `json:"data"` Model string `json:"model"` Usage *Usage `json:"usage"` }
func ConvertGeminiResponseToOpenAI ¶
func ConvertGeminiResponseToOpenAI(geminiBatchResp *genai.BatchEmbedContentsResponse, model string) *EmbedResponse
type EmbedResponseData ¶
type ModelResponse ¶
type ModelResponse struct { Object string `json:"object"` Data []*ModelResponseData `json:"data"` }
type ModelResponseData ¶
Click to show internal directories.
Click to hide internal directories.