From b3069932e12f0ac8352e370e08deb13c98b2a899 Mon Sep 17 00:00:00 2001 From: Asharib Ali <102221198+AsharibAli@users.noreply.github.com> Date: Tue, 14 May 2024 01:26:07 +0500 Subject: [PATCH] Add new openai model (GPT-4o ) in the assistant and models.json (#2402) * add openai new model (gpt-4o) in the assistant * add openai new model (gpt-4o) in the models.json --- packages/components/models.json | 4 ++++ packages/ui/src/views/assistants/AssistantDialog.jsx | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/packages/components/models.json b/packages/components/models.json index 68a41ab0bba..71bc6cc92ad 100644 --- a/packages/components/models.json +++ b/packages/components/models.json @@ -402,6 +402,10 @@ { "name": "chatOpenAI", "models": [ + { + "label": "gpt-4o", + "name": "gpt-4o" + }, { "label": "gpt-4", "name": "gpt-4" diff --git a/packages/ui/src/views/assistants/AssistantDialog.jsx b/packages/ui/src/views/assistants/AssistantDialog.jsx index 1fea490796d..eb2e1e34e8f 100644 --- a/packages/ui/src/views/assistants/AssistantDialog.jsx +++ b/packages/ui/src/views/assistants/AssistantDialog.jsx @@ -46,6 +46,10 @@ import { HIDE_CANVAS_DIALOG, SHOW_CANVAS_DIALOG } from '@/store/actions' import { maxScroll } from '@/store/constant' const assistantAvailableModels = [ + { + label: 'gpt-4o', + name: 'gpt-4o' + }, { label: 'gpt-4-turbo', name: 'gpt-4-turbo' @@ -70,6 +74,10 @@ const assistantAvailableModels = [ label: 'gpt-3.5-turbo', name: 'gpt-3.5-turbo' }, + { + label: 'gpt-3.5-turbo-0125', + name: 'gpt-3.5-turbo-0125' + }, { label: 'gpt-3.5-turbo-1106', name: 'gpt-3.5-turbo-1106'