Integrate workflow router model into chat generation handlers and App component
This commit is contained in:
@@ -1179,6 +1179,7 @@ export default function App() {
|
||||
userScrolledUpRef,
|
||||
visionModel,
|
||||
webSearchEnabled,
|
||||
workflowRouterModel,
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user