CALM Tutorial with Mistral

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 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)

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 we can train successfully but when chatting with the bot, another tool asks for the OPENAI_API_KEY

Our config looks like this:

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:

RASA_PRO_LICENSE='rasa_pro_license_key'
MISTRAL_API_KEY='mistral_api_key'

Thanks in advance for your help!

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.