#!/usr/bin/env sh
# Server-side cURL example; set your own provider key. No automatic retry.
# Source: https://docs.mistral.ai/api/endpoint/chat; checked 2026-10-12.
set -eu
: "${MISTRAL_API_KEY:?Set MISTRAL_API_KEY on the server}"
curl --fail --silent --show-error --max-time 35 \
  https://api.mistral.ai/v1/chat/completions \
  -H "Authorization: Bearer $MISTRAL_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"model":"mistral-large-4","messages":[{"role":"user","content":"Explain safe retries in three sentences."}],"max_tokens":1024}'
