Local llm error with enviromental variable OPENAI key

Hello, sorry for the late reply. I fixed this by running these two commands in my command line:

export OPENAI_API_KEY="sk-111111111111111111111111111111111111111111111111"
export OPENAI_API_BASE="http://127.0.0.1:5000/v1"

I found this dummy OPENAPI key somewhere in the internet I cannot remember where. I believe there would be something similar for mistral. Except if your error is exactly the same about openai api so I believe this will fix your error.

Hope that this helps.

1 Like