Skip to content

Commit

Permalink
OpenAI: new models: improve appearance/defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Nov 6, 2023
1 parent 86a3d86 commit 3d50774
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/common/util/modelUtils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function prettyBaseModel(model: string | undefined): string {
if (!model) return '';
if (model.includes('gpt-4-vision-preview')) return 'GPT-4 Vision';
if (model.includes('gpt-4-1106-preview')) return 'GPT-4 Turbo';
if (model.includes('gpt-4-1106-vision-preview')) return 'GPT-4 Vision';
if (model.includes('gpt-4-32k')) return 'gpt-4-32k';
if (model.includes('gpt-4')) return 'gpt-4';
if (model.includes('gpt-3.5-turbo-instruct')) return '3.5 Turbo Instruct';
Expand Down
4 changes: 2 additions & 2 deletions src/modules/llms/store-llms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ export const useModelsStore = create<ModelsData & ModelsActions>()(


const defaultChatSuffixPreference = ['gpt-4-1106-preview', 'gpt-4-0613', 'gpt-4', 'gpt-4-32k', 'gpt-3.5-turbo'];
const defaultFastSuffixPreference = ['gpt-3.5-turbo-16k-0613', 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo-16k', 'gpt-3.5-turbo'];
const defaultFuncSuffixPreference = ['gpt-3.5-turbo-16k-0613', 'gpt-3.5-turbo-0613', 'gpt-4-0613'];
const defaultFastSuffixPreference = ['gpt-3.5-turbo-1106', 'gpt-3.5-turbo-16k-0613', 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo-16k', 'gpt-3.5-turbo'];
const defaultFuncSuffixPreference = ['gpt-4-1106-preview', 'gpt-3.5-turbo-16k-0613', 'gpt-3.5-turbo-0613', 'gpt-4-0613'];

export function findLLMOrThrow<TSourceSetup, TLLMOptions>(llmId: DLLMId): DLLM<TSourceSetup, TLLMOptions> {
const llm = useModelsStore.getState().llms.find(llm => llm.id === llmId);
Expand Down
11 changes: 6 additions & 5 deletions src/modules/llms/vendors/openai/openai.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ const knownOpenAIChatModels: ({ idPrefix: string } & Omit<ModelDescriptionSchema
// GPT4 Turbo
{
idPrefix: 'gpt-4-1106-preview',
label: '4-Turbo (1106)',
label: '🌟 4-Turbo (1106)',
description: '128k context, fresher knowledge, cheaper than GPT-4.',
contextWindow: 131072,
interfaces: [LLM_IF_OAI_Chat],
},
{
idPrefix: 'gpt-4-1106-vision-preview',
label: '4-Turbo-Vision (1106)',
idPrefix: 'gpt-4-vision-preview',
label: '4-Turbo (Vision preview)',
description: 'Vision support, 128k context, fresher knowledge, cheaper than GPT-4.',
contextWindow: 131072,
interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Vision],
Expand Down Expand Up @@ -72,10 +72,10 @@ const knownOpenAIChatModels: ({ idPrefix: string } & Omit<ModelDescriptionSchema
// 3.5-Turbo-16k's
{
idPrefix: 'gpt-3.5-turbo-1106',
label: '3.5-Turbo-16k (1106)',
label: '🌟 3.5-Turbo-16k (1106)',
description: 'Snapshot of gpt-3.5-turbo-16k from November 6th 2023.',
contextWindow: 16385,
interfaces: [LLM_IF_OAI_Chat],
interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Fn],
},
{
idPrefix: 'gpt-3.5-turbo-16k-0613',
Expand Down Expand Up @@ -119,6 +119,7 @@ const knownOpenAIChatModels: ({ idPrefix: string } & Omit<ModelDescriptionSchema
description: 'Snapshot of gpt-3.5-turbo from June 13th 2023 with function calling data.',
contextWindow: 4097,
interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Fn],
hidden: true,
},
{
idPrefix: 'gpt-3.5-turbo',
Expand Down

1 comment on commit 3d50774

@vercel
Copy link

@vercel vercel bot commented on 3d50774 Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

big-agi – ./

big-agi-git-main-enricoros.vercel.app
big-agi-enricoros.vercel.app
get.big-agi.com

Please sign in to comment.