Skip to content

Commit

Permalink
Add new openai model (GPT-4o ) in the assistant and models.json (Flow…
Browse files Browse the repository at this point in the history
…iseAI#2402)

* add openai new model (gpt-4o) in the assistant

* add openai new model (gpt-4o) in the models.json
  • Loading branch information
AsharibAli authored May 13, 2024
1 parent b501030 commit b306993
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@
{
"name": "chatOpenAI",
"models": [
{
"label": "gpt-4o",
"name": "gpt-4o"
},
{
"label": "gpt-4",
"name": "gpt-4"
Expand Down
8 changes: 8 additions & 0 deletions packages/ui/src/views/assistants/AssistantDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit b306993

Please sign in to comment.