Код: Выделить всё
import os
from mistralai import Mistral
api_key = "my api key"
client = Mistral(api_key=api_key)
chat_response = client.agents.complete(
agent_id="my agent id",
messages = [
{
"role": "user",
"content": "Hello",
},
]
)
print(chat_response.choices[0].message.content)
Подробнее здесь: https://stackoverflow.com/questions/791 ... rsation-li
Мобильная версия