JohnsonBot ConvoBot and other OpenAI Interfaces Can Talk To Mistral API

Mistral has released an API which has an OpenAI-like API interface, with basic access for free!  And it works fine with our ConvoBot and other OpenAI interfaces (e.g., the gptconnect-ctrl+gptconnect-bot scripts for Submissive Controller and Animesh and Wearable bot control systems)!

First step is get a Mistral Studio API key!  Go to Mistral AI and make an account and get a free API key.

Then you need to tell your ConvoBot (or your AI system) to use the Mistral API URL, to use a Mistral model, and to use your Mistral API key for authentication.   The commands to do this are

gpturl https://api.mistral.ai/v1/chat/completions
gptkey YOURKEY
gptmodel mistral-medium-latest

The model "mistral-medium-latest" is one possible (and not bad) choice. Basic access is free as long as you don't use too many tokens (in which case you have chatted a lot and probably should pay).

For ConvoBot you can just say these commands to the thing - note that they need to be sent again after
a crash.    You could also send these commands at the top of the user-accessible LSL script.

For the AI systems (wearables, SC) you can either set these variables with controller commands
on the ai card (e.g., ctrl|gpturl https://api.mistral.ai/v1/chat/completions ), or again hard-wire the settings at the top of the gptconnect-ctrl script.


A note (5/30/26) - the gptconnect-rpx script appears to need the gpturl function added to it in some cases so use Mistral with the non-rpx scripts - we will make sure every instance of that add-on script on MP is updated!  Please ask if you want an updated gptconnect-rpx-bot script.  Mistal appears to be a bit more finicky than OpenAI about incoming data packages so let me know if you run into snags!
Enjoy and please ask if you have questions!

Comments

Popular posts from this blog

Play With The Bots Over At The West Mill Store!

Welcome to the AI Animesh Sexbot Party @ Sunset Forest!

TTS2 - New Text to Audio Speech System! Hear What You Type In Media Audio!