diff --git a/dashboard/src/components/chat/Chat.vue b/dashboard/src/components/chat/Chat.vue index 43f9a6c2a1..0810cc929d 100644 --- a/dashboard/src/components/chat/Chat.vue +++ b/dashboard/src/components/chat/Chat.vue @@ -1459,11 +1459,12 @@ async function handleRegenerateMessage( ) { if (!currSessionId.value || isUserMessage(message)) return; message.threads = []; + const effectiveSelection = selection ?? getSelectedProviderSelection(); await regenerateMessage( currSessionId.value, message, - selection?.providerId || "", - selection?.modelName || "", + effectiveSelection?.providerId || "", + effectiveSelection?.modelName || "", enableStreaming.value, ); }