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

openai and litellm version confilicts #394

Open
zhaochenyang20 opened this issue Jan 23, 2024 · 4 comments
Open

openai and litellm version confilicts #394

zhaochenyang20 opened this issue Jan 23, 2024 · 4 comments
Assignees

Comments

@zhaochenyang20
Copy link
Collaborator

In the project.toml, we do not require a specific version of openai and litellm. If a user directly runs pip install ., then the newest version of openai may not support import openai.error. However, we use this in our api_tools.py. If we choose to use a lower version of openai, it is not supported by litellm. Thus we need to refactor our api_tools.py to support new version of openai and litellm.

@viswavi
Copy link
Collaborator

viswavi commented Jan 23, 2024

@zhaochenyang20: in pyproject.toml, we do specify specific versions of openai and litellm (https://github.com/neulab/prompt2model/blob/main/pyproject.toml)

@zhaochenyang20 zhaochenyang20 self-assigned this Jan 24, 2024
@zhaochenyang20
Copy link
Collaborator Author

Yeah. Make sense to me, but I personally think that we need to keep pace with the latest version of openai and iltellm. I gonna refactor this later.

@saum7800
Copy link
Collaborator

saum7800 commented Mar 8, 2024

I think this has become more important now. I was trying to use base model as gpt-4-turbo-preview but was getting litellm errors saying model could not be mapped correctly. I believe this is due to the mismatch. @zhaochenyang20 are you refactoring this?

@viswavi
Copy link
Collaborator

viswavi commented Mar 8, 2024

Hey I'm gonna take a crack at fixing this, hopefully this weekend! It's definitely something we can't ignore

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

No branches or pull requests

3 participants