Open zhaochenyang20 opened 10 months ago
@zhaochenyang20: in pyproject.toml
, we do specify specific versions of openai and litellm (https://github.com/neulab/prompt2model/blob/main/pyproject.toml)
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.
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?
Hey I'm gonna take a crack at fixing this, hopefully this weekend! It's definitely something we can't ignore
In the
project.toml
, we do not require a specific version ofopenai
andlitellm
. If a user directly runspip install .
, then the newest version ofopenai
may not supportimport openai.error
. However, we use this in ourapi_tools.py
. If we choose to use a lower version ofopenai
, it is not supported bylitellm
. Thus we need to refactor ourapi_tools.py
to support new version ofopenai
andlitellm
.