From 7ac10ddbb87e9eb0e8e34d58a13a4775cbba1c24 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:54:27 +0000 Subject: [PATCH] feat(api): add new gpt-4o-mini models (#942) --- .stats.yml | 2 +- src/resources/beta/assistants.ts | 2 ++ src/resources/beta/threads/runs/runs.ts | 2 ++ src/resources/beta/threads/threads.ts | 2 ++ src/resources/chat/chat.ts | 2 ++ 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 57f5afaff..27e2ce5ed 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-27d8d6da893c1cdd53b491ec05153df22b1e113965f253a1d6eb8d75b628173f.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-518ca6c60061d3e8bc0971facf40d752f2aea62e3522cc168ad29a1f29cab3dd.yml diff --git a/src/resources/beta/assistants.ts b/src/resources/beta/assistants.ts index 5d326a593..abacfd06e 100644 --- a/src/resources/beta/assistants.ts +++ b/src/resources/beta/assistants.ts @@ -1057,6 +1057,8 @@ export interface AssistantCreateParams { | (string & {}) | 'gpt-4o' | 'gpt-4o-2024-05-13' + | 'gpt-4o-mini' + | 'gpt-4o-mini-2024-07-18' | '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 b4ed09cc2..24b6ce4a2 100644 --- a/src/resources/beta/threads/runs/runs.ts +++ b/src/resources/beta/threads/runs/runs.ts @@ -672,6 +672,8 @@ export interface RunCreateParamsBase { | (string & {}) | 'gpt-4o' | 'gpt-4o-2024-05-13' + | 'gpt-4o-mini' + | 'gpt-4o-mini-2024-07-18' | '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 aded9daf1..04ce7b57d 100644 --- a/src/resources/beta/threads/threads.ts +++ b/src/resources/beta/threads/threads.ts @@ -549,6 +549,8 @@ export interface ThreadCreateAndRunParamsBase { | (string & {}) | 'gpt-4o' | 'gpt-4o-2024-05-13' + | 'gpt-4o-mini' + | 'gpt-4o-mini-2024-07-18' | '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 da4e90d42..74cda326e 100644 --- a/src/resources/chat/chat.ts +++ b/src/resources/chat/chat.ts @@ -11,6 +11,8 @@ export class Chat extends APIResource { export type ChatModel = | 'gpt-4o' | 'gpt-4o-2024-05-13' + | 'gpt-4o-mini' + | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview'