From f7b9adc037f84881bacd7b9d9778d60c346a5e1b Mon Sep 17 00:00:00 2001 From: Oxygen <1391083091@qq.com> Date: Sat, 6 Jun 2026 01:49:05 +0800 Subject: [PATCH] fix: add gpt-5.1-mini model support Adds the missing gpt-5.1-mini model to type definitions. Fixes #1706 --- src/resources/responses/responses.ts | 2 +- src/resources/shared.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/responses/responses.ts b/src/resources/responses/responses.ts index d76d8f77ca..cfabfecc00 100644 --- a/src/resources/responses/responses.ts +++ b/src/resources/responses/responses.ts @@ -8199,7 +8199,7 @@ export interface ResponseCompactParams { | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' - | 'gpt-5.1-mini' + | 'gpt-5.1-codex-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 05bc86524c..8234f8bae8 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -33,7 +33,7 @@ export type ChatModel = | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' - | 'gpt-5.1-mini' + | 'gpt-5.1-codex-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini'