From 55e78d1116840cf8c8e7d912661ede873001c36d Mon Sep 17 00:00:00 2001 From: Andreas van Hulst Date: Wed, 10 Sep 2025 07:17:24 +0200 Subject: [PATCH] [Platform][Mistral] Add support for Voxtral models with audio input and tool-calling --- src/platform/src/Bridge/Mistral/Mistral.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/platform/src/Bridge/Mistral/Mistral.php b/src/platform/src/Bridge/Mistral/Mistral.php index 62fec67e4..f3f0bca7f 100644 --- a/src/platform/src/Bridge/Mistral/Mistral.php +++ b/src/platform/src/Bridge/Mistral/Mistral.php @@ -29,6 +29,8 @@ final class Mistral extends Model public const MINISTRAL_8B = 'mistral-8b-latest'; public const PIXSTRAL_LARGE = 'pixstral-large-latest'; public const PIXSTRAL = 'pixstral-12b-latest'; + public const VOXTRAL_SMALL = 'voxtral-small-latest'; + public const VOXTRAL_MINI = 'voxtral-mini-latest'; /** * @param array $options @@ -48,6 +50,10 @@ public function __construct( $capabilities[] = Capability::INPUT_IMAGE; } + if (\in_array($name, [self::VOXTRAL_SMALL, self::VOXTRAL_MINI], true)) { + $capabilities[] = Capability::INPUT_AUDIO; + } + if (\in_array($name, [ self::CODESTRAL, self::MISTRAL_LARGE, @@ -57,6 +63,8 @@ public function __construct( self::MINISTRAL_8B, self::PIXSTRAL, self::PIXSTRAL_LARGE, + self::VOXTRAL_MINI, + self::VOXTRAL_SMALL, ], true)) { $capabilities[] = Capability::TOOL_CALLING; }