fix: honor configured followup extraction model preference

This commit is contained in:
2026-10-09 18:09:12 +08:00
parent e762a367da
commit 73be0ecedf
2 changed files with 23 additions and 1 deletions
@@ -99,7 +99,11 @@ final class FollowupAudioProviderConfig
public static function readyModels(): array
{
$models = [];
foreach (['qwen', 'openai'] as $profile) {
$profiles = ['qwen', 'openai'];
$preferred = config('followup_audio.profile', 'qwen');
// Preference is presentation only: existing tasks retain their bound provider identity.
if (in_array($preferred, $profiles, true)) { $profiles = array_values(array_unique(array_merge([$preferred], $profiles))); }
foreach ($profiles as $profile) {
if (FollowupAudioGate::ready($profile)) { $models[] = ['value' => $profile, 'label' => self::resolve($profile)['label']]; }
}
return $models;