# Local llm error with enviromental variable OPENAI key

**URL:** <https://forum.rasa.com/t/local-llm-error-with-enviromental-variable-openai-key/63655>\
**Category:** Rasa CALM\
**Created:** [October 1, 2024, 3:14pm UTC](https://forum.rasa.com/t/local-llm-error-with-enviromental-variable-openai-key/63655 "2024-10-01T15:14:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![chatz](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@chatz](https://forum.rasa.com/u/chatz)\
**Post date:** [December 11, 2024, 5:30pm UTC](https://forum.rasa.com/t/local-llm-error-with-enviromental-variable-openai-key/63655/5 "2024-12-11T17:30:03Z")

</div>

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.

---

_[View the full topic](https://forum.rasa.com/t/local-llm-error-with-enviromental-variable-openai-key/63655)._
