Skip to content

Commit

Permalink
Merge pull request #389 from Didask/openai-last-gpt4-turbo
Browse files Browse the repository at this point in the history
Openai: add latest gpt4 turbo model
  • Loading branch information
abrenneke authored Apr 14, 2024
2 parents cf6668c + f0169c8 commit e732816
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const CreateAssistantNodeImpl: PluginNodeImpl<CreateAssistantNode> = {
useInputToggleDataKey: 'useModelInput',
label: 'Model',
options: openAiModelOptions,
defaultValue: 'gpt-4-1106-preview',
defaultValue: 'gpt-4-turbo',
},
{
type: 'string',
Expand Down
12 changes: 10 additions & 2 deletions packages/core/src/utils/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,23 @@ export const openaiModels = {
prompt: 0.01,
completion: 0.03,
},
displayName: 'GPT-4 Turbo 128K',
displayName: 'GPT-4 Turbo 128K (1106 Preview)',
},
'gpt-4-turbo': {
maxTokens: 128000,
cost: {
prompt: 0.01,
completion: 0.03,
},
displayName: 'GPT-4 Turbo 128K with Vision',
},
'gpt-4-vision-preview': {
maxTokens: 128000,
cost: {
prompt: 0.01,
completion: 0.03,
},
displayName: 'GPT-4 Vision',
displayName: 'GPT-4 Vision (Preview)',
},
'local-model': {
maxTokens: Number.MAX_SAFE_INTEGER,
Expand Down

0 comments on commit e732816

Please sign in to comment.