Skip to content

Commit 2076d85

Browse files
feat(api): add phase field to conversations message
1 parent c0c59af commit 2076d85

2 files changed

Lines changed: 11 additions & 3 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: 152
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/openai/types/conversations/message.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Union
3+
from typing import List, Union, Optional
44
from typing_extensions import Literal, Annotated, TypeAlias
55

66
from ..._utils import PropertyInfo
@@ -68,3 +68,11 @@ class Message(BaseModel):
6868

6969
type: Literal["message"]
7070
"""The type of the message. Always set to `message`."""
71+
72+
phase: Optional[Literal["commentary", "final_answer"]] = None
73+
"""
74+
Labels an `assistant` message as intermediate commentary (`commentary`) or the
75+
final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when
76+
sending follow-up requests, preserve and resend phase on all assistant messages
77+
— dropping it can degrade performance. Not used for user messages.
78+
"""

0 commit comments

Comments
 (0)