Skip to content

Commit e43bcda

Browse files
fix(api): fix phase enum
1 parent 5b6c7d5 commit e43bcda

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 147
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-242cfb8a5a0690f8aa7ab4c356d296ef86d87eaf2b79910b93a85859f5c5e311.yml
3-
openapi_spec_hash: 58c8149e0e302c6e061157d46c3ef8a1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-6bfe886b5ded0fe3bf37ca672698814e16e0836a093ceef65dac37ae44d1ad6b.yml
3+
openapi_spec_hash: 6b1344a59044318e824c8d1af96033c7
44
config_hash: 7f49c38fa3abe9b7038ffe62262c4912

src/resources/responses/responses.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,14 @@ export interface EasyInputMessage {
422422
role: 'user' | 'assistant' | 'system' | 'developer';
423423

424424
/**
425-
* Labels an `assistant` message as intermediate commentary (`commentary`) or the
426-
* final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when
427-
* sending follow-up requests, preserve and resend phase on all assistant messages
428-
* — dropping it can degrade performance. Not used for user messages.
425+
* The phase of an assistant message.
426+
*
427+
* Use `commentary` for an intermediate assistant message and `final_answer` for
428+
* the final assistant message. For follow-up requests with models like
429+
* `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages.
430+
* Omitting it can degrade performance. Not used for user messages.
429431
*/
430-
phase?: 'commentary' | null;
432+
phase?: 'commentary' | 'final_answer' | null;
431433

432434
/**
433435
* The type of the message input. Always `message`.
@@ -4751,12 +4753,14 @@ export interface ResponseOutputMessage {
47514753
type: 'message';
47524754

47534755
/**
4754-
* Labels an `assistant` message as intermediate commentary (`commentary`) or the
4755-
* final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when
4756-
* sending follow-up requests, preserve and resend phase on all assistant messages
4757-
* — dropping it can degrade performance. Not used for user messages.
4756+
* The phase of an assistant message.
4757+
*
4758+
* Use `commentary` for an intermediate assistant message and `final_answer` for
4759+
* the final assistant message. For follow-up requests with models like
4760+
* `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages.
4761+
* Omitting it can degrade performance. Not used for user messages.
47584762
*/
4759-
phase?: 'commentary' | null;
4763+
phase?: 'commentary' | 'final_answer' | null;
47604764
}
47614765

47624766
/**

0 commit comments

Comments
 (0)