Skip to content

Configuring a custom server tutorial

flyun edited this page Sep 7, 2024 · 2 revisions

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.

image

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"; b1

image

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;

image

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;

image

4.Return to the ChatAir homepage, click on the dialog box and then click on the avatar to enter the chat settings;

a2

5.Click "AI Model" and select "Custom Model";

a3

6.Click "Custom Model", enter model ID: mistral-tiny, and click the confirm button to automatically return to the chat settings page;

b5

7.Return to the ChatAir homepage, click on the dialog box, and send the chat content to test the conversation.

a4

Clone this wiki locally