Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send dimensions & user args to embedding models #8090

Merged
merged 7 commits into from
Dec 13, 2024

Conversation

diksipav
Copy link
Contributor

If provided, send dimensions and user in embedding requests.

@diksipav diksipav requested review from elprans and dnwpark December 10, 2024 08:38
@@ -2225,6 +2232,9 @@ async def _handle_embeddings_request(
raise TypeError(
'missing or empty required "model" value in request')

shortening = body.get("dimensions")
Copy link
Contributor Author

@diksipav diksipav Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like above on line 2225 to use inputs = body.get("inputs") and to expect inputs from the clients, but this is a breaking change so probably we wanna leave it as input.

Is it ok to accept both input or inputs and to provide deprecated for input?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, accept both, but throw an error when both are specified.

@diksipav diksipav force-pushed the update-ai-ext-embedding-api branch from b0a79a1 to 3de2838 Compare December 11, 2024 15:31
@msullivan msullivan merged commit fc5eeac into master Dec 13, 2024
24 checks passed
@msullivan msullivan deleted the update-ai-ext-embedding-api branch December 13, 2024 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants