Mistral AI Proxy

 1---
 2# Passthrough access to the Mistral AI API, with the platform's API key.
 3# Use the Mistral SDK, with server_url="https://<smarter>/api/v1/proxy/mistral/", or the OpenAI
 4# SDK, with this Proxy's URL plus v1/ as its base_url.
 5apiVersion: smarter.sh/v1
 6kind: Proxy
 7metadata:
 8  name: mistral
 9  description: Passthrough access to the Mistral AI API's chat completions, code completions, embeddings and models.
10  version: 1.0.0
11  tags:
12    - mistral
13    - builtin
14  annotations:
15    - smarter.sh/proxy/builtin: "true"
16    - smarter.sh/proxy/documentation: https://docs.mistral.ai/api/
17spec:
18  provider: mistral
19  apiKey: mistral_api_key
20  baseUrl: https://api.mistral.ai/
21  auth:
22    header: Authorization
23    scheme: Bearer
24  allowedPaths:
25    - v1/chat/completions
26    - v1/fim/completions
27    - v1/embeddings
28    - v1/moderations
29    - v1/models
30    - v1/models/*
31  timeout: 120
32  isActive: true