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

[Feat] support dimensions OpenAI embedding param #1635

Merged
merged 7 commits into from
Jan 26, 2024

Conversation

ishaan-jaff
Copy link
Contributor

@ishaan-jaff ishaan-jaff commented Jan 26, 2024

Support for new dimensions param on OpenAI

Usage

from litellm import embedding
import os
os.environ['OPENAI_API_KEY'] = ""
response = embedding(
    model="text-embedding-3-small",
    input=["good morning from litellm", "this is another item"],
    dimensions=5 # Only supported in text-embedding-3 and later models.
)

Copy link

railway-app bot commented Jan 26, 2024

This PR is being deployed to Railway 🚅

litellm: ◻️ REMOVED

Copy link

vercel bot commented Jan 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 26, 2024 9:33pm

@ishaan-jaff
Copy link
Contributor Author

will merge one main is stable

@ishaan-jaff
Copy link
Contributor Author

merging - main is stable

@ishaan-jaff ishaan-jaff merged commit c054f50 into main Jan 26, 2024
5 of 7 checks passed
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.

1 participant