mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
OpenAI compatibility for /v1/embeddings #306
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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/embeddingsinstead of/v1/embeddings, with incompatibilities arising with newer code.https://github.com/ollama/ollama-python/blob/9ddd5f0182d0c15274e0280154231f8149e8612a/ollama/_client.py#L1005-L1006
Useful links:
@ParthSareen commented on GitHub (Nov 11, 2025):
/v1/embeddingsis meant to be used with the openai sdk. Not sure what the benefit is of swapping the python sdk to use that instead.