Skip to content

Commit

Permalink
feat: set default model to gpt-4o (run-llama#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 authored Jun 6, 2024
1 parent 24a9d1e commit 1378ec4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-otters-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"llamaindex": patch
---

feat: set default model to `gpt-4o`
3 changes: 1 addition & 2 deletions packages/core/src/llm/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export const GPT4_MODELS = {
"gpt-4-1106-preview": { contextWindow: 128000 },
"gpt-4-0125-preview": { contextWindow: 128000 },
"gpt-4-vision-preview": { contextWindow: 128000 },
// fixme: wait for openai documentation
"gpt-4o": { contextWindow: 128000 },
"gpt-4o-2024-05-13": { contextWindow: 128000 },
};
Expand Down Expand Up @@ -185,7 +184,7 @@ export class OpenAI extends ToolCallLLM<OpenAIAdditionalChatOptions> {
},
) {
super();
this.model = init?.model ?? "gpt-3.5-turbo";
this.model = init?.model ?? "gpt-4o";
this.temperature = init?.temperature ?? 0.1;
this.topP = init?.topP ?? 1;
this.maxTokens = init?.maxTokens ?? undefined;
Expand Down

0 comments on commit 1378ec4

Please sign in to comment.