Skip to content
Snippets Groups Projects
Unverified Commit 1378ec4e authored by Alex Yang's avatar Alex Yang Committed by GitHub
Browse files

feat: set default model to `gpt-4o` (#911)

parent 24a9d1e8
Branches
Tags
No related merge requests found
---
"llamaindex": patch
---
feat: set default model to `gpt-4o`
...@@ -110,7 +110,6 @@ export const GPT4_MODELS = { ...@@ -110,7 +110,6 @@ export const GPT4_MODELS = {
"gpt-4-1106-preview": { contextWindow: 128000 }, "gpt-4-1106-preview": { contextWindow: 128000 },
"gpt-4-0125-preview": { contextWindow: 128000 }, "gpt-4-0125-preview": { contextWindow: 128000 },
"gpt-4-vision-preview": { contextWindow: 128000 }, "gpt-4-vision-preview": { contextWindow: 128000 },
// fixme: wait for openai documentation
"gpt-4o": { contextWindow: 128000 }, "gpt-4o": { contextWindow: 128000 },
"gpt-4o-2024-05-13": { contextWindow: 128000 }, "gpt-4o-2024-05-13": { contextWindow: 128000 },
}; };
...@@ -185,7 +184,7 @@ export class OpenAI extends ToolCallLLM<OpenAIAdditionalChatOptions> { ...@@ -185,7 +184,7 @@ export class OpenAI extends ToolCallLLM<OpenAIAdditionalChatOptions> {
}, },
) { ) {
super(); super();
this.model = init?.model ?? "gpt-3.5-turbo"; this.model = init?.model ?? "gpt-4o";
this.temperature = init?.temperature ?? 0.1; this.temperature = init?.temperature ?? 0.1;
this.topP = init?.topP ?? 1; this.topP = init?.topP ?? 1;
this.maxTokens = init?.maxTokens ?? undefined; this.maxTokens = init?.maxTokens ?? undefined;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment