I created a lambda function on AWS which was working fine. At some point I placed all my requirements (including openai) in a layer.
I’m getting the following error: cannot import name ‘model_json_schema’ from ‘openai._compat’
I tried many different things like using specific platform wheels, but nothing seems to work.
Any ideas?
Updating that issue was solved by moving openai out of the layer and installing it as part of the main function. Still not sure why openai is not working in the lambda layer, but at least the code works now.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.