Skip to content

Commit

Permalink
gpt-4-turbo is not in preview anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
jbilcke-hf committed Apr 17, 2024
1 parent 5f171b8 commit f5acf1d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function Search() {
elapsedTimeMs={elapsedTimeMs}
estimatedTimeSec={estimatedTimeSec}
isLoading={isLoading}
model={settings.openAIModel || 'gpt-4-turbo-preview' }
model={settings.openAIModel || 'gpt-4-turbo' }
provider="OpenAI"
stage={`JSON ${pass}/${maxNbPasses}`}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/app/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ const fields: Partial<SettingsFields> & MiscPanelFields = {
openAIModel: {
label: 'Language Model',
description: '',
placeholder: 'Enter the model (default: gpt-4-turbo-preview)',
placeholder: 'Enter the model (default: gpt-4-turbo)',
type: 'text',
defaultValue: 'gpt-4-turbo-preview',
defaultValue: 'gpt-4-turbo',
},
/*
customPrompts: {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const useSettings = (
huggingFaceKey: '',
huggingFaceModel: 'mistralai/Mixtral-8x7B-Instruct-v0.1',
openAIKey: '',
openAIModel: 'gpt-4-turbo-preview',
openAIModel: 'gpt-4-turbo',
customTasksPrompt: '',
customHtmlPrompt: '',
customScriptPrompt: '',
Expand Down
2 changes: 1 addition & 1 deletion src/providers/openai/complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function complete({
}: CompleteFnParams): Promise<string> {

// don't do this if you deploy the latent browser on a server!!!
persisted.model = model || 'gpt-4-turbo-preview'
persisted.model = model || 'gpt-4-turbo'

const openai = await getOpenAI(apiKey)

Expand Down

0 comments on commit f5acf1d

Please sign in to comment.