Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add gpt-4o to model types #840

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add gpt-4o to model types
  • Loading branch information
ezra-chu committed May 13, 2024
commit 53776cbc8d0075b64f00f4daba4bac53c37889c1
1 change: 1 addition & 0 deletions src/resources/beta/assistants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,7 @@ export interface AssistantCreateParams {
*/
model:
| (string & {})
| 'gpt-4o'
| 'gpt-4-turbo'
| 'gpt-4-turbo-2024-04-09'
| 'gpt-4-0125-preview'
Expand Down
4 changes: 4 additions & 0 deletions src/resources/beta/threads/runs/runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ export interface RunCreateParamsBase {
*/
model?:
| (string & {})
| 'gpt-4o'
| 'gpt-4-turbo'
| 'gpt-4-turbo-2024-04-09'
| 'gpt-4-0125-preview'
Expand Down Expand Up @@ -919,6 +920,7 @@ export interface RunCreateAndPollParams {
*/
model?:
| (string & {})
| 'gpt-4o'
| 'gpt-4-turbo'
| 'gpt-4-turbo-2024-04-09'
| 'gpt-4-0125-preview'
Expand Down Expand Up @@ -1124,6 +1126,7 @@ export interface RunCreateAndStreamParams {
*/
model?:
| (string & {})
| 'gpt-4o'
| 'gpt-4-turbo'
| 'gpt-4-turbo-2024-04-09'
| 'gpt-4-0125-preview'
Expand Down Expand Up @@ -1329,6 +1332,7 @@ export interface RunStreamParams {
*/
model?:
| (string & {})
| 'gpt-4o'
| 'gpt-4-turbo'
| 'gpt-4-turbo-2024-04-09'
| 'gpt-4-0125-preview'
Expand Down
3 changes: 3 additions & 0 deletions src/resources/beta/threads/threads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ export interface ThreadCreateAndRunParamsBase {
*/
model?:
| (string & {})
| 'gpt-4o'
| 'gpt-4-turbo'
| 'gpt-4-turbo-2024-04-09'
| 'gpt-4-0125-preview'
Expand Down Expand Up @@ -849,6 +850,7 @@ export interface ThreadCreateAndRunPollParams {
*/
model?:
| (string & {})
| 'gpt-4o'
| 'gpt-4-turbo'
| 'gpt-4-turbo-2024-04-09'
| 'gpt-4-0125-preview'
Expand Down Expand Up @@ -1178,6 +1180,7 @@ export interface ThreadCreateAndRunStreamParams {
*/
model?:
| (string & {})
| 'gpt-4o'
| 'gpt-4-turbo'
| 'gpt-4-turbo-2024-04-09'
| 'gpt-4-0125-preview'
Expand Down
1 change: 1 addition & 0 deletions src/resources/chat/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export class Chat extends APIResource {
}

export type ChatModel =
| 'gpt-4o'
| 'gpt-4-turbo'
| 'gpt-4-turbo-2024-04-09'
| 'gpt-4-0125-preview'
Expand Down