feat: Embeddings endpoint added for 100% OpenAI compatibility#10018
Closed
hdnh2006 wants to merge 1 commit intoopen-webui:mainfrom
Closed
feat: Embeddings endpoint added for 100% OpenAI compatibility#10018hdnh2006 wants to merge 1 commit intoopen-webui:mainfrom
hdnh2006 wants to merge 1 commit intoopen-webui:mainfrom
Conversation
This was referenced Feb 14, 2025
Contributor
|
This does not implement |
Contributor
Author
Could you please be more specific about what you expect? What I did is to create an endpoint in openai route, how would you like to implement this? Thanks in advance. |
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This PR solves this feature request.
With this PR, I add a new route
/api/embeddingsthat allows direct access to the embeddings functionality while maintaining the existing/openai/embeddingsroute. This enables more intuitive API access for embeddings generation.Added
/api/embeddingsthat maps to the existing OpenAI embeddings functionalityChanged
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Python code used for testing:
Response gotten: