gateway
gateway copied to clipboard
Vendoring OpenAI SDK causing bugs
What Happened?
Working in https://github.com/mozilla-ai/any-llm , after adding portkey_ai python package, I started seeing these strange error messages in tests that should have been unrelated;
FAILED tests/integration/test_response_format.py::test_response_format[openai] - AttributeError: 'Completions' object has no attribute 'parse'
https://github.com/mozilla-ai/any-llm/actions/runs/16732735706/job/47364954288
I think what's happening is that the portkey_ai package is vendoring the openai package instead of using it, but still importing it as 'openai' which causes it to overwrite the true openai package that I had already installed and use for other parts of the code.
What Should Have Happened?
No response
Relevant Code Snippet
No response
Your Twitter/LinkedIn
https://www.linkedin.com/in/njbrake/