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

Need better error message when user has old unsupported version of openai already installed #19

Open
jamie256 opened this issue Jul 23, 2024 · 0 comments

Comments

@jamie256
Copy link
Contributor

If you have older versions of openai package installed that are unsupported, and if you don't follow the openai example install command with the openai extra:
https://github.com/whylabs/openllmtelemetry/blob/mainline/notebooks/Instrumenting_OpenAI.ipynb

then the instrument call fails in a confusing way because the unsupported openai package version will not have raised the usual warning from pip, and you get:

TypeError: _with_tracer() missing 1 required positional argument: 'guard'

when calling openllmtelemetry.instrument()

We should check for these older versions and emit a friendly warning urging the user to upgrade openai to a supported version.

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

1 participant