Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use client'

import React from 'react'
import dynamic from 'next/dynamic'
import { Box, Container } from '@mui/material'

const AdminDocumentStores = dynamic(() => import('@ui/Admin/DocumentStores'), { ssr: false })

const Page = () => {
return (
<Container maxWidth='xl'>
<Box sx={{ py: 4, p: 2 }}>
<AdminDocumentStores />
</Box>
</Container>
)
}

export default Page
25 changes: 25 additions & 0 deletions packages-answers/assets/aai-models.json
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,13 @@
{
"name": "chatGoogleGenerativeAI",
"models": [
{
"label": "gemini-2.5-flash-image-preview",
"name": "gemini-2.5-flash-image-preview",
"description": "Latest Gemini model with image generation and understanding capabilities",
"input_cost": 0.15e-6,
"output_cost": 6e-7
},
{
"label": "gemini-2.5-flash-preview-05-20",
"name": "gemini-2.5-flash-preview-05-20",
Expand Down Expand Up @@ -789,6 +796,24 @@
{
"name": "chatOpenAI",
"models": [
{
"label": "gpt-5",
"name": "gpt-5",
"input_cost": 1.25e-6,
"output_cost": 1e-5
},
{
"label": "gpt-5-mini",
"name": "gpt-5-mini",
"input_cost": 2.5e-7,
"output_cost": 2e-6
},
{
"label": "gpt-5-nano",
"name": "gpt-5-nano",
"input_cost": 5e-8,
"output_cost": 4e-7
},
{
"label": "gpt-4.1",
"name": "gpt-4.1",
Expand Down
25 changes: 25 additions & 0 deletions packages-answers/assets/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,13 @@
{
"name": "chatGoogleGenerativeAI",
"models": [
{
"label": "gemini-2.5-flash-image-preview",
"name": "gemini-2.5-flash-image-preview",
"description": "Latest Gemini model with image generation and understanding capabilities",
"input_cost": 0.15e-6,
"output_cost": 6e-7
},
{
"label": "gemini-2.5-flash-preview-05-20",
"name": "gemini-2.5-flash-preview-05-20",
Expand Down Expand Up @@ -789,6 +796,24 @@
{
"name": "chatOpenAI",
"models": [
{
"label": "gpt-5",
"name": "gpt-5",
"input_cost": 1.25e-6,
"output_cost": 1e-5
},
{
"label": "gpt-5-mini",
"name": "gpt-5-mini",
"input_cost": 2.5e-7,
"output_cost": 2e-6
},
{
"label": "gpt-5-nano",
"name": "gpt-5-nano",
"input_cost": 5e-8,
"output_cost": 4e-7
},
{
"label": "gpt-4.1",
"name": "gpt-4.1",
Expand Down
16 changes: 14 additions & 2 deletions packages-answers/ui/src/Admin/Chatflows/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,21 @@ const AdminChatflows = () => {
}

const getCanvasRoute = (chatflow: any) => {
// Check the actual flow type, not the filter selection
// For react-router-dom Link component (relative paths)
console.log('🤖id', chatflow.id)
console.log('type', chatflow)
if (chatflow.type === 'AGENTFLOW') {
return `/v2/agentcanvas/${chatflow.id}`
} else if (chatflow.type === 'MULTIAGENT') {
return `/agentcanvas/${chatflow.id}`
} else {
// Default to regular chatflow canvas
return `/canvas/${chatflow.id}`
}
}

const getCanvasFullUrl = (chatflow: any) => {
// For window.open() (full URLs with base path)
if (chatflow.type === 'AGENTFLOW') {
return `/sidekick-studio/v2/agentcanvas/${chatflow.id}`
} else if (chatflow.type === 'MULTIAGENT') {
Expand Down Expand Up @@ -1371,7 +1383,7 @@ const AdminChatflows = () => {
<Tooltip title='View Chatflow' placement='top'>
<IconButton
size='small'
onClick={() => window.open(getCanvasRoute(chatflow), '_blank')}
onClick={() => window.open(getCanvasFullUrl(chatflow), '_blank')}
sx={{
color: 'rgba(255, 255, 255, 0.7)',
'&:hover': { color: 'rgba(255, 255, 255, 0.9)' }
Expand Down
Loading
Loading