Package com.tnsai.llm.providers
Class MistralClient
java.lang.Object
com.tnsai.llm.providers.AbstractLLMClient
com.tnsai.llm.providers.AbstractOpenAICompatibleClient
com.tnsai.llm.providers.MistralClient
- All Implemented Interfaces:
com.tnsai.llm.LLMClient
Mistral AI LLM client implementation.
Provides access to Mistral's models via the API.
Mistral's chat-completions API is OpenAI-compatible at
https://api.mistral.ai/v1 — same request/response wire format as
DeepSeekClient / GroqClient — so this client is a thin
subclass of AbstractOpenAICompatibleClient with no behavioural
overrides.
Supported models:
- mistral-large-latest - Top-tier reasoning model
- pixtral-large-latest - Multimodal model
- ministral-8b-latest - Efficient edge model
- codestral-latest - Specialized for code generation
Configuration via environment variables:
- MISTRAL_API_KEY - Required API key for authentication
- MISTRAL_BASE_URL - Optional, defaults to https://api.mistral.ai/v1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMistralClient(String model) MistralClient(String model, float temperature) MistralClient(String model, float temperature, Float topP, Integer maxTokens) MistralClient(String model, float temperature, Integer maxTokens) MistralClient(String baseUrl, String model, float temperature, Float topP, Integer maxTokens, String apiKey) MistralClient(String baseUrl, String model, float temperature, Integer maxTokens, String apiKey) -
Method Summary
Methods inherited from class com.tnsai.llm.providers.AbstractOpenAICompatibleClient
chat, streamChatMethods inherited from class com.tnsai.llm.providers.AbstractLLMClient
getBaseUrl, getCallTimeoutMs, getMaxTokens, getModel, getTemperature, getTopPMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tnsai.llm.LLMClient
chat, chat, chat, chat, chat, getCapabilities, getProviderName, listModels, streamChat, streamChat, streamChatWithHandler, streamChatWithHandler, streamChatWithSpec, streamChatWithSpec
-
Constructor Details
-
MistralClient
-
MistralClient
-
MistralClient
-
MistralClient
-
MistralClient
-
MistralClient
-