NextJS 13 using api folder for Python runtime routes #2732
Replies: 1 comment
-
how did you solved it? ihave a similiar problem with vercel not founding my openai module |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Getting errors posting in the help forum so posting here. Having issues with Python runtime locally vs on Vercel. Would love some help/suggestions!
pip show openai is defined everywhere locally, but opening the fil in api/completions/utils/llm_response.py it gives me a Import "openai" could not be resolved error. When I run through vercel.dev with requirements.txt containing openai at my root, everything works fine on localhost, no issue.
This is the api/completions/utils/llm_response.py file that's being called by api/completions/index.py.
This is the repo I am working in:
https://github.com/SilenNaihin/roadman-talk
Example
https://roadman-talk.vercel.app/
Steps to Reproduce
git clone
the repo I shared. thennpm i
for all the modules. Then vercel dev to run the Vercel cli - this works. Add your env variables at .env.local from the .env.template. Upload to Vercel and try to run any of the api callsBeta Was this translation helpful? Give feedback.
All reactions