Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.
add mistral-medium
thomashebrard37069eb5d9bb
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 357d0dbdd..8515fb5b1 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,8 @@### Added- Added `FuncRegistryUtils` to register functions in a pipelex folder that have a specific signature.+- Added `mistral-medium` and `mistral-medium-2508` to the LLM deck.+- Added handle for `gemini-2.5-flash` to the LLM deck.## [v0.9.5] - 2025-09-12diff --git a/pipelex/cogt/llm/llm_models/llm_family.py b/pipelex/cogt/llm/llm_models/llm_family.pyindex dc53d18f6..d927352f6 100644--- a/pipelex/cogt/llm/llm_models/llm_family.py+++ b/pipelex/cogt/llm/llm_models/llm_family.py@@ -75,6 +75,7 @@ class LLMFamily(StrEnum):MISTRAL_8X7B = "mistral-8x7b"MISTRAL_LARGE = "mistral-large"MISTRAL_SMALL = "mistral-small"+ MISTRAL_MEDIUM = "mistral-medium"MISTRAL_CODESTRAL = "mistral-codestral"MINISTRAL = "ministral"PIXTRAL = "pixtral"@@ -128,6 +129,7 @@ class LLMFamily(StrEnum):| LLMFamily.MISTRAL_8X7B| LLMFamily.MISTRAL_LARGE| LLMFamily.MISTRAL_SMALL+ | LLMFamily.MISTRAL_MEDIUM| LLMFamily.MISTRAL_CODESTRAL| LLMFamily.MINISTRAL| LLMFamily.PIXTRALdiff --git a/pipelex/libraries/llm_deck/base_llm_deck.toml b/pipelex/libraries/llm_deck/base_llm_deck.tomlindex 726851f7e..cddfbc0d0 100644--- a/pipelex/libraries/llm_deck/base_llm_deck.toml+++ b/pipelex/libraries/llm_deck/base_llm_deck.toml@@ -13,6 +13,8 @@ llm_external_handles = []gpt-4o-2024-11-20 = { llm_name = "gpt-4o", llm_version = "2024-11-20" }base-claude = "claude-4-sonnet"base-gpt = "gpt-5"+base-gemini = "gemini-2.5-flash"+base-mistral = "mistral-medium"best-gpt = "gpt-5"best-claude = "claude-4-1-opus"@@ -47,6 +49,9 @@ llm_for_testing_gen_object = { llm_handle = "base_llm_for_object", temperature =##################################################################################################### LLM Presets — Specific skills+# Cheap llm+llm_cheap = { llm_handle = "base-gemini", temperature = 0.1 }+# Generation skillsllm_for_factual_writing = { llm_handle = "base-gpt", temperature = 0.1 }llm_for_creative_writing = { llm_handle = "best-claude", temperature = 0.9 }@@ -81,7 +86,6 @@ llm_to_extract_invoice_from_scan = { llm_handle = "best-claude", temperature = 0llm_to_extract_legal_terms = { llm_handle = "best-claude", temperature = 0.1 }llm_to_extract_tables = { llm_handle = "best-claude", temperature = 0.1 }-##################################################################################################### LLM Choices####################################################################################################diff --git a/pipelex/libraries/llm_integrations/mistral.toml b/pipelex/libraries/llm_integrations/mistral.tomlindex c99cdd8bc..d27135fc2 100644--- a/pipelex/libraries/llm_integrations/mistral.toml+++ b/pipelex/libraries/llm_integrations/mistral.toml@@ -68,3 +68,16 @@ is_vision_supported = truecost_per_million_tokens_usd = { input = 2.0, output = 6.0 }platform_llm_id = { mistral = "pixtral-large-latest" }+[mistral-medium.mistral-medium.latest]+max_tokens = 128000+is_gen_object_supported = true+cost_per_million_tokens_usd = { input = 0.4, output = 2.0 }+platform_llm_id = { mistral = "mistral-medium-latest" }+++[mistral-medium.mistral-medium."2508"]+max_tokens = 128000+is_gen_object_supported = true+cost_per_million_tokens_usd = { input = 0.4, output = 2.0 }+platform_llm_id = { mistral = "mistral-medium-2508" }+diff --git a/pipelex/plugins/openai/openai_llm_worker.py b/pipelex/plugins/openai/openai_llm_worker.pyindex a5a47f6f7..ef82a408d 100644--- a/pipelex/plugins/openai/openai_llm_worker.py+++ b/pipelex/plugins/openai/openai_llm_worker.py@@ -115,6 +115,7 @@ class OpenAILLMWorker(LLMWorkerInternalAbstract):| LLMFamily.MISTRAL_8X7B| LLMFamily.MISTRAL_LARGE| LLMFamily.MISTRAL_SMALL+ | LLMFamily.MISTRAL_MEDIUM| LLMFamily.MISTRAL_CODESTRAL| LLMFamily.MINISTRAL| LLMFamily.PIXTRAL@@ -220,6 +221,7 @@ class OpenAILLMWorker(LLMWorkerInternalAbstract):| LLMFamily.MISTRAL_8X7B| LLMFamily.MISTRAL_LARGE| LLMFamily.MISTRAL_SMALL+ | LLMFamily.MISTRAL_MEDIUM| LLMFamily.MISTRAL_CODESTRAL| LLMFamily.MINISTRAL| LLMFamily.PIXTRAL