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

fix typos & add missing names for azure models #1290

Merged
merged 4 commits into from
Jan 1, 2024

Conversation

fcakyon
Copy link
Contributor

@fcakyon fcakyon commented Jan 1, 2024

Fixes #1291

Before this PR, most Azure OpenAI models used incorrect context size in LiteLMM. (For instance, . is not allowed in Azure deployment names, so gpt-3.5 in Openai has to be spelled as gpt-35 in Azure OpenAI)

This PR makes LiteLMM work perfectly fine with all available Azure OpenAI models.

Copy link

vercel bot commented Jan 1, 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 1, 2024 11:13am

model_prices_and_context_window.json Outdated Show resolved Hide resolved
Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

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

Can you update this mapping here too:

azure_llms = {

since we're calling it azure/gpt-35-turbo now

@ishaan-jaff
Copy link
Contributor

lgtm - just one change requested

@fcakyon
Copy link
Contributor Author

fcakyon commented Jan 1, 2024

Can you update this mapping here too:

azure_llms = {

since we're calling it azure/gpt-35-turbo now

@ishaan-jaff updated 👍

Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

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

lgtm ! Good to merge @fcakyon ?

@krrishdholakia
Copy link
Contributor

Great work @fcakyon!

@fcakyon
Copy link
Contributor Author

fcakyon commented Jan 1, 2024

lgtm ! Good to merge @fcakyon ?

Yes its ready to merge @ishaan-jaff !

@ishaan-jaff ishaan-jaff merged commit 9cb5a2b into BerriAI:main Jan 1, 2024
2 checks passed
@fcakyon fcakyon deleted the patch-1 branch January 1, 2024 12:28
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.

[Bug]: Azure OpenAI models use incorrect context size
3 participants