OpenAI compatibility for /v1/embeddings #306

Closed
opened 2026-02-15 16:29:47 -05:00 by yindo · 1 comment
Owner
Originally created by @colltoaction on GitHub (Nov 5, 2025). I would like to propose to implement the V1 Embeddings API Endpoint to improve OpenAI compatibility. Ollama clients use `/api/embeddings` instead of `/v1/embeddings`, with incompatibilities arising with newer code. https://github.com/ollama/ollama-python/blob/9ddd5f0182d0c15274e0280154231f8149e8612a/ollama/_client.py#L1005-L1006 Useful links: * https://platform.openai.com/docs/api-reference/embeddings/create * https://docs.ollama.com/api/openai-compatibility#%2Fv1%2Fembeddings * https://github.com/ollama/ollama/blob/8bbc7395dbe6993a058e28ccf35e14089ff55e0d/docs/api.md?plain=1#L1828 * https://github.com/ollama/ollama/blob/8bbc7395dbe6993a058e28ccf35e14089ff55e0d/docs/api/openai-compatibility.mdx#v1embeddings * https://github.com/ollama/ollama/blob/8bbc7395dbe6993a058e28ccf35e14089ff55e0d/server/routes.go#L1504
yindo closed this issue 2026-02-15 16:29:47 -05:00
Author
Owner

@ParthSareen commented on GitHub (Nov 11, 2025):

/v1/embeddings is meant to be used with the openai sdk. Not sure what the benefit is of swapping the python sdk to use that instead.

@ParthSareen commented on GitHub (Nov 11, 2025): `/v1/embeddings` is meant to be used with the openai sdk. Not sure what the benefit is of swapping the python sdk to use that instead.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#306