-
Notifications
You must be signed in to change notification settings - Fork 61
Configuring a custom server tutorial
Using Mistral AI in ChatAir
It’s easy to setup ChatAir for using with Mistral AI( https://mistral.ai/ ).Here is a quick guide.
Get a Mistral AI account
You can sign up from http://mistral.ai/ . ChatAir works with any endpoint that has a compatible OpenAI protocol.
Once you have an account, go to https://console.mistral.ai/user/api-keys/ to create an API key.
Add a custom model in ChatAir:
Enter ChatAir and create a new custom model as follow:
1.Click the settings button and then click "API Server Settings";
2.Click “API Server”, enter the exact endpoint from the API document: https://api.mistral.ai/v1/chat/completions Click the confirmation button, and it will automatically return to the "API Server Settings" menu after it is correct;
3.Click “API Key”, enter the API key from Mistral AI. After clicking the Confirm button, it will automatically return to the "API Server Settings" menu;
4.Return to the ChatAir homepage, click on the dialog box and then click on the avatar to enter the chat settings;
5.Click "AI Model" and select "Custom Model";
6.Click "Custom Model", enter model ID: mistral-tiny, and click the confirm button to automatically return to the chat settings page;
7.Return to the ChatAir homepage, click on the dialog box, and send the chat content to test the conversation.
Other Compatible API Endpoints
For other services that are also compatible with the OpenAI protocol, you can follow similar steps by simply replacing the corresponding Chat Completions API URL. Here are the addresses for some other services: