fix: honor configured followup extraction model preference
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user