Skip to content

Commit

Permalink
Merge pull request #69 from chengfengfengwang/Add-GPT4o
Browse files Browse the repository at this point in the history
  • Loading branch information
Royal-lobster authored May 14, 2024
2 parents ad28cd2 + d7193c5 commit fb38487
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/great-icons-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"syncia": patch
---

Marks GPT-4o model as vision model
2 changes: 1 addition & 1 deletion src/components/Sidebar/chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const Chat = ({ settings }: ChatProps) => {
clearMessages={clearMessages}
cancelRequest={cancelRequest}
isWebpageContextOn={settings.general.webpageContext}
isVisionModel={settings.chat.model === AvailableModels.GPT_4_TURBO}
isVisionModel={settings.chat.model === AvailableModels.GPT_4_TURBO || settings.chat.model === AvailableModels.GPT_4O}
/>
</>
)
Expand Down
1 change: 1 addition & 0 deletions src/config/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export enum ThemeOptions {
}

export enum AvailableModels {
GPT_4O = 'gpt-4o',
GPT_4_TURBO = 'gpt-4-turbo',
GPT_4 = 'gpt-4',
GPT_4o = 'gpt-4o',
Expand Down

0 comments on commit fb38487

Please sign in to comment.