From e75c831bebdfd1e5568331751eb7415e644f748e Mon Sep 17 00:00:00 2001 From: Asharib Ali Date: Tue, 15 Apr 2025 21:14:09 +0500 Subject: [PATCH 1/2] feat: Add GPT-4.1 series models support (#4305) * feat: add GPT-4.1 series models support to OpenAI Assistant Dialog * Update models.json --------- Co-authored-by: Henry Heng --- packages/components/models.json | 16 ++++++++++++++++ .../views/assistants/openai/AssistantDialog.jsx | 12 ++++++++++++ 2 files changed, 28 insertions(+) diff --git a/packages/components/models.json b/packages/components/models.json index a7b8a2eba..8e202f4e3 100644 --- a/packages/components/models.json +++ b/packages/components/models.json @@ -235,6 +235,10 @@ { "name": "azureChatOpenAI", "models": [ + { + "label": "gpt-4.1", + "name": "gpt-4.1" + }, { "label": "o3-mini", "name": "o3-mini" @@ -619,6 +623,18 @@ { "name": "chatOpenAI", "models": [ + { + "label": "gpt-4.1", + "name": "gpt-4.1" + }, + { + "label": "gpt-4.1-mini", + "name": "gpt-4.1-mini" + }, + { + "label": "gpt-4.1-nano", + "name": "gpt-4.1-nano" + }, { "label": "gpt-4.5-preview", "name": "gpt-4.5-preview" diff --git a/packages/ui/src/views/assistants/openai/AssistantDialog.jsx b/packages/ui/src/views/assistants/openai/AssistantDialog.jsx index 3157efa60..cd6722ef9 100644 --- a/packages/ui/src/views/assistants/openai/AssistantDialog.jsx +++ b/packages/ui/src/views/assistants/openai/AssistantDialog.jsx @@ -46,6 +46,18 @@ import { HIDE_CANVAS_DIALOG, SHOW_CANVAS_DIALOG } from '@/store/actions' import { maxScroll } from '@/store/constant' const assistantAvailableModels = [ + { + label: 'gpt-4.1', + name: 'gpt-4.1' + }, + { + label: 'gpt-4.1-mini', + name: 'gpt-4.1-mini' + }, + { + label: 'gpt-4.1-nano', + name: 'gpt-4.1-nano' + }, { label: 'gpt-4.5-preview', name: 'gpt-4.5-preview' From a7b4ae733f1c6a87db0a1e08b89625dd50e44224 Mon Sep 17 00:00:00 2001 From: Zubair Khalid Date: Tue, 15 Apr 2025 17:14:22 +0100 Subject: [PATCH 2/2] [FEATURE] Show time with date for last modified date for chatflow/agentflow/credentials/variables (#4300) feat(ui): show time with date for last modified date for chatflow/agentflow/credentials/variables Co-authored-by: coolpengwing --- packages/ui/src/ui-component/table/FlowListTable.jsx | 4 +++- packages/ui/src/views/credentials/index.jsx | 4 ++-- packages/ui/src/views/variables/index.jsx | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/ui/src/ui-component/table/FlowListTable.jsx b/packages/ui/src/ui-component/table/FlowListTable.jsx index dea00791c..fad0f52a7 100644 --- a/packages/ui/src/ui-component/table/FlowListTable.jsx +++ b/packages/ui/src/ui-component/table/FlowListTable.jsx @@ -248,7 +248,9 @@ export const FlowListTable = ({ data, images, isLoading, filterFunction, updateF )} - {moment(row.updatedDate).format('MMMM Do, YYYY')} + + {moment(row.updatedDate).format('MMMM Do, YYYY HH:mm:ss')} + { - {moment(credential.updatedDate).format('MMMM Do, YYYY')} + {moment(credential.updatedDate).format('MMMM Do, YYYY HH:mm:ss')} - {moment(credential.createdDate).format('MMMM Do, YYYY')} + {moment(credential.createdDate).format('MMMM Do, YYYY HH:mm:ss')} edit(credential)}> diff --git a/packages/ui/src/views/variables/index.jsx b/packages/ui/src/views/variables/index.jsx index e9a1fbf48..37cc8ae78 100644 --- a/packages/ui/src/views/variables/index.jsx +++ b/packages/ui/src/views/variables/index.jsx @@ -340,10 +340,10 @@ const Variables = () => { /> - {moment(variable.updatedDate).format('MMMM Do, YYYY')} + {moment(variable.updatedDate).format('MMMM Do, YYYY HH:mm:ss')} - {moment(variable.createdDate).format('MMMM Do, YYYY')} + {moment(variable.createdDate).format('MMMM Do, YYYY HH:mm:ss')} edit(variable)}>