Integrate workflow router model into chat generation handlers and App component

This commit is contained in:
2026-06-15 15:22:19 +02:00
parent 2b29952835
commit c1f3935cf5
2 changed files with 3 additions and 0 deletions

View File

@@ -1179,6 +1179,7 @@ export default function App() {
userScrolledUpRef,
visionModel,
webSearchEnabled,
workflowRouterModel,
})
useEffect(() => {

View File

@@ -85,6 +85,7 @@ export function createChatGenerationHandlers({
userScrolledUpRef,
visionModel,
webSearchEnabled,
workflowRouterModel,
}) {
async function regenerateFromIndex(index, overrideUserText = null) {
const sessionId = activeSessionId
@@ -358,6 +359,7 @@ export function createChatGenerationHandlers({
attachments: outgoingAttachments,
vision_model: visionModel || null,
transcription_model: transcriptionModel || null,
router_model: workflowRouterModel || null,
stream: true,
}, requestController.signal)
attachWorkflowRunToRequest?.(requestController, created.run_id)