From c818ed139bfba81af6ca3c4eda08d52366758529 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Mon, 13 May 2024 14:14:57 -0400 Subject: [PATCH] feat(api): add gpt-4o model (#841) --- .stats.yml | 2 +- src/resources/beta/assistants.ts | 2 ++ src/resources/beta/threads/runs/runs.ts | 8 ++++++++ src/resources/beta/threads/threads.ts | 6 ++++++ src/resources/chat/chat.ts | 2 ++ 5 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 52e87d1b5..f44b9b46a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 64 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-084b8f68408c6b689a55200a78bcf233769bfcd8e999d9fadaeb399152b05bcd.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-47007cc1aa5bc7b74107a99b377925978a0bd376ed67bdae724e80d5d0b63d57.yml diff --git a/src/resources/beta/assistants.ts b/src/resources/beta/assistants.ts index a24cee045..4f3136446 100644 --- a/src/resources/beta/assistants.ts +++ b/src/resources/beta/assistants.ts @@ -1000,6 +1000,8 @@ export interface AssistantCreateParams { */ model: | (string & {}) + | 'gpt-4o' + | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' diff --git a/src/resources/beta/threads/runs/runs.ts b/src/resources/beta/threads/runs/runs.ts index d188edb2d..267c0944d 100644 --- a/src/resources/beta/threads/runs/runs.ts +++ b/src/resources/beta/threads/runs/runs.ts @@ -660,6 +660,8 @@ export interface RunCreateParamsBase { */ model?: | (string & {}) + | 'gpt-4o' + | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' @@ -919,6 +921,8 @@ export interface RunCreateAndPollParams { */ model?: | (string & {}) + | 'gpt-4o' + | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' @@ -1124,6 +1128,8 @@ export interface RunCreateAndStreamParams { */ model?: | (string & {}) + | 'gpt-4o' + | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' @@ -1329,6 +1335,8 @@ export interface RunStreamParams { */ model?: | (string & {}) + | 'gpt-4o' + | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' diff --git a/src/resources/beta/threads/threads.ts b/src/resources/beta/threads/threads.ts index 7bd86fa50..e1fb3a2d4 100644 --- a/src/resources/beta/threads/threads.ts +++ b/src/resources/beta/threads/threads.ts @@ -492,6 +492,8 @@ export interface ThreadCreateAndRunParamsBase { */ model?: | (string & {}) + | 'gpt-4o' + | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' @@ -849,6 +851,8 @@ export interface ThreadCreateAndRunPollParams { */ model?: | (string & {}) + | 'gpt-4o' + | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' @@ -1178,6 +1182,8 @@ export interface ThreadCreateAndRunStreamParams { */ model?: | (string & {}) + | 'gpt-4o' + | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' diff --git a/src/resources/chat/chat.ts b/src/resources/chat/chat.ts index ff271e5b4..925401fe1 100644 --- a/src/resources/chat/chat.ts +++ b/src/resources/chat/chat.ts @@ -9,6 +9,8 @@ export class Chat extends APIResource { } export type ChatModel = + | 'gpt-4o' + | 'gpt-4o-2024-05-13' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview'