llm_mistral#
- class baf.nlp.llm.llm_mistral.LLMMistral(agent, name, parameters, num_previous_messages=1, global_context=None)[source]#
Bases:
LLMOpenAICompatibleLLM wrapper for Mistral AI models via Mistral’s OpenAI-compatible API.
Requires
nlp.mistral.api_keyto be set in the agent config file. The default base URL points tohttps://api.mistral.ai/v1.Example model names:
"mistral-small-latest","mistral-large-latest","mistral-medium-latest","open-mistral-nemo".- API_KEY_PROPERTY = <baf.core.property.Property object>#
Property constant used to look up the API key from the agent config file.
- DEFAULT_BASE_URL = 'https://api.mistral.ai/v1'#
Provider base URL.
None→ use the OpenAI SDK default (api.openai.com).
- _abc_impl = <_abc._abc_data object>#