hey there, trying to connect mistral ai custom agent to telegram bot
got 400 Bad Request Error on /v1/chat/completions API
I am trying to send a request to the https://api.mistral.ai/v1/chat/completions
endpoint using the following JSON payload:
{
“model”: “mistral-small-2501”,
“agent_id”: “ag:5b5b439c:20250212:untitled-agent:51376fe6”,
“messages”: [
{
“role”: “user”,
“content”: “TEST”
}
],
“temperature”: 0.7
}