Skip to content

Commit

Permalink
feat: support gpt4-o (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 authored May 13, 2024
1 parent 75736ad commit 4aba02e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-beans-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"llamaindex": patch
---

feat: support gpt4-o
3 changes: 3 additions & 0 deletions packages/core/src/llm/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ 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 },
};

// NOTE we don't currently support gpt-3.5-turbo-instruct and don't plan to in the near future
Expand Down

0 comments on commit 4aba02e

Please sign in to comment.