Skip to content

Commit

Permalink
add gpt-4o
Browse files Browse the repository at this point in the history
  • Loading branch information
tri-star committed May 13, 2024
1 parent 835d8a8 commit 73c9758
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## v2.5.0

- Add gpt-4o.

## v2.4.0

- Add gpt-4-turbo.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

Your friend living in the sidebar, powered by OpenAI API(from gpt-3.5-turbo to gpt-4-turbo).
Your friend living in the sidebar, powered by OpenAI API(from gpt-3.5-turbo to gpt-4o).
You can specify the model and temperature, and refer to conversation history(shared between Windows/WSL).

## Requirements
Expand Down
4 changes: 3 additions & 1 deletion packages/app/src/domain/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const roleSchema = zod.union([
])

export const modelSchema = zod.union([
zod.literal('gpt-4o'),
zod.literal('gpt-4-turbo'),
zod.literal('gpt-4-0125-preview'),
zod.literal('gpt-4-1106-preview'),
Expand Down Expand Up @@ -41,6 +42,7 @@ export const chatRoles: ChatRole[] = ['system', 'assistant', 'user']
export type ChatModel = zod.infer<typeof modelSchema>

export const chatModels: ChatModel[] = [
'gpt-4o',
'gpt-4-turbo',
'gpt-4-0125-preview',
'gpt-4-1106-preview',
Expand All @@ -51,4 +53,4 @@ export const chatModels: ChatModel[] = [
'gpt-3.5-turbo',
] as const

export const DEFAULT_CHAT_MODEL: ChatModel = 'gpt-4-turbo'
export const DEFAULT_CHAT_MODEL: ChatModel = 'gpt-4o'

0 comments on commit 73c9758

Please sign in to comment.