# CALM Tutorial with Mistral

**URL:** <https://forum.rasa.com/t/calm-tutorial-with-mistral/64816>\
**Category:** Rasa CALM\
**Created:** [December 11, 2024, 4:36pm UTC](https://forum.rasa.com/t/calm-tutorial-with-mistral/64816 "2024-12-11T16:36:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thinkinnet](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@thinkinnet](https://forum.rasa.com/u/thinkinnet)\
**Post date:** [December 11, 2024, 4:36pm UTC](https://forum.rasa.com/t/calm-tutorial-with-mistral/64816/1 "2024-12-11T16:36:57Z")

</div>

Hi everyone,

We would like to test CALM using the tutorial within the github codespace. I asked this question already in this topic [Local llm error with enviromental variable OPENAI key](https://forum.rasa.com/t/local-llm-error-with-enviromental-variable-openai-key/63655) but it seems to get no attention. And therefor we will repeat it here.

What we are trying is just get some experience with CALM with our Mistral model. And we are trying to get the default tutorial running with this model ([Tutorial](https://rasa.com/docs/rasa-pro/tutorial))

First we got an error that says the command generator needs an `OPENAI_API_KEY` and after disabling the flow retrieval like in this post [Rasa Pro Tutorial with Azure OpenAI Service not working - #2 by emilymoore04](https://forum.rasa.com/t/rasa-pro-tutorial-with-azure-openai-service-not-working/61810/2) we can train successfully but when chatting with the bot, another tool asks for the OPENAI\_API\_KEY

Our config looks like this:

```auto
recipe: default.v1
language: en
pipeline:
  - name: SingleStepLLMCommandGenerator
    llm:
      provider: mistral
      model: mistral-large-latest
    flow_retrieval:
      active: false

policies:
  - name: FlowPolicy
# - name: EnterpriseSearchPolicy
# - name: RulePolicy

```

And our .env file looks like:

```auto
RASA_PRO_LICENSE='rasa_pro_license_key'
MISTRAL_API_KEY='mistral_api_key'

```

Thanks in advance for your help!

---

<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/calm-tutorial-with-mistral/64816/2 "2024-12-11T17:30:29Z")

</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.
