pub async fn openai_to_gemini_batch<U: Upstream>(
upstream: &U,
target: &U::Target,
template: WireRequest<()>,
input: CreateEmbeddingRequestBody,
target_model: &str,
options: EmbeddingBatchOptions,
) -> Result<EmbeddingBatchResult<CreateEmbeddingResponseBody>, EmbeddingBatchError>Expand description
Convert an OpenAI embedding batch and call Gemini batchEmbedContents in
source order. template is the selected target HTTP endpoint, never the
original client request; its body is replaced and authentication is host-owned.