You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Guardrails configure llm providers missing error key?!
To Reproduce
Steps to reproduce the behavior:
uv add guardrails-ai
guardrails configure
Expected behavior
Configuration for the hub / api key
Library version:
Version 0.1.8
uv add installs version 0.1.8 instead of 0.6.4 🤷
Additional context
There seem to be some errors with your openai import
Error:
.venv/lib/python3.12/site-packages/guardrails/llm_providers.py", line 17, in <module>
openai.error.APIConnectionError,
^^^^^^^^^^^^
AttributeError: module 'openai' has no attribute 'error'
The error you're seeing regarding the openai error import is because version 0.1.8 of guardrails only supports 0.x versions of openai (the only major version that existed at the time). Likewise, the configure command did not exist in 0.1.8; the cli has changed drastically since then. As you pointed out, this is a non-issue if you upgrade to a newer version.
If I try to reproduce this issue in a clean environment I also see uv installing an older version (0.5.15). Since pip and poetry work as expected and install the latest version (0.6.4), this suggests the issue lies with uv, or possibly the environment uv is running in, and not the guardrails-ai package.
I'm going to close this for now, but please reach back out if you encounter other issues.
Describe the bug
Guardrails configure llm providers missing error key?!
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Configuration for the hub / api key
Library version:
Version 0.1.8
uv add installs version 0.1.8 instead of 0.6.4 🤷
Additional context
There seem to be some errors with your openai import
Error:
This one should work:
once fixed I am greeted with this error:
an upgrade fixed it, seems like the default version is somehow messed up?
pip install --upgrade guardrails-ai
The text was updated successfully, but these errors were encountered: