Skip to content

Commit eb7cbc1

Browse files
feat(api): add phase field to Message in conversations
1 parent 1f6968e commit eb7cbc1

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 151
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-2fab88288cbbe872f5d61d1d47da2286662a123b4312bc7fc36addba6607cd67.yml
3-
openapi_spec_hash: a7ee80374e409ed9ecc8ea2e3cd31071
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-89e54b8e2c185d30e869f73e7798308d56a6a835a675d54628dd86836f147879.yml
3+
openapi_spec_hash: 85b0dd465aa1a034f2764b0758671f21
44
config_hash: 5635033cdc8c930255f8b529a78de722

src/resources/conversations/conversations.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ export interface Message {
170170
* The type of the message. Always set to `message`.
171171
*/
172172
type: 'message';
173+
174+
/**
175+
* Labels an `assistant` message as intermediate commentary (`commentary`) or the
176+
* final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when
177+
* sending follow-up requests, preserve and resend phase on all assistant messages
178+
* — dropping it can degrade performance. Not used for user messages.
179+
*/
180+
phase?: 'commentary' | 'final_answer' | null;
173181
}
174182

175183
export namespace Message {

0 commit comments

Comments
 (0)