in src/methods/embed-content.ts [27:42]
export async function embedContent(
apiKey: string,
model: string,
params: EmbedContentRequest,
requestOptions?: RequestOptions,
): Promise<EmbedContentResponse> {
const response = await makeModelRequest(
model,
Task.EMBED_CONTENT,
apiKey,
false,
JSON.stringify(params),
requestOptions,
);
return response.json();
}