Skip to content

Commit 9ab5a57

Browse files
feat(api): update via SDK Studio
1 parent 3e426e4 commit 9ab5a57

File tree

4 files changed

+4
-19
lines changed

4 files changed

+4
-19
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: 16
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-129afed79c2ff0ae5f660a17af692c0f716b0d61ce62700f107c1d905346793e.yml
3-
openapi_spec_hash: 4bc73b4bfb67367575ac7b582b77d912
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-42c787cc277f295f28cd81a67f7b746cb4d47c3cd4c8a3fb521b03407649ebdd.yml
3+
openapi_spec_hash: 8f514f7881cf54e0aa65a23366df1af0
44
config_hash: 61e8ad6b1bd35aec38a7b20a2570b967

src/opencode_ai/resources/session.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ def chat(
162162
model_id: str,
163163
parts: Iterable[MessagePartParam],
164164
provider_id: str,
165-
session_id: str,
166165
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
167166
# The extra values given here take precedence over values defined on the client or passed to this method.
168167
extra_headers: Headers | None = None,
@@ -174,7 +173,7 @@ def chat(
174173
Create and send a new message to a session
175174
176175
Args:
177-
session_id: Session ID
176+
id: Session ID
178177
179178
extra_headers: Send extra headers
180179
@@ -193,7 +192,6 @@ def chat(
193192
"model_id": model_id,
194193
"parts": parts,
195194
"provider_id": provider_id,
196-
"session_id": session_id,
197195
},
198196
session_chat_params.SessionChatParams,
199197
),
@@ -524,7 +522,6 @@ async def chat(
524522
model_id: str,
525523
parts: Iterable[MessagePartParam],
526524
provider_id: str,
527-
session_id: str,
528525
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
529526
# The extra values given here take precedence over values defined on the client or passed to this method.
530527
extra_headers: Headers | None = None,
@@ -536,7 +533,7 @@ async def chat(
536533
Create and send a new message to a session
537534
538535
Args:
539-
session_id: Session ID
536+
id: Session ID
540537
541538
extra_headers: Send extra headers
542539
@@ -555,7 +552,6 @@ async def chat(
555552
"model_id": model_id,
556553
"parts": parts,
557554
"provider_id": provider_id,
558-
"session_id": session_id,
559555
},
560556
session_chat_params.SessionChatParams,
561557
),

src/opencode_ai/types/session_chat_params.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,3 @@ class SessionChatParams(TypedDict, total=False):
1717
parts: Required[Iterable[MessagePartParam]]
1818

1919
provider_id: Required[Annotated[str, PropertyInfo(alias="providerID")]]
20-
21-
session_id: Required[Annotated[str, PropertyInfo(alias="sessionID")]]
22-
"""Session ID"""

tests/api_resources/test_session.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ def test_method_chat(self, client: Opencode) -> None:
179179
}
180180
],
181181
provider_id="providerID",
182-
session_id="sessionID",
183182
)
184183
assert_matches_type(Message, session, path=["response"])
185184

@@ -196,7 +195,6 @@ def test_raw_response_chat(self, client: Opencode) -> None:
196195
}
197196
],
198197
provider_id="providerID",
199-
session_id="sessionID",
200198
)
201199

202200
assert response.is_closed is True
@@ -217,7 +215,6 @@ def test_streaming_response_chat(self, client: Opencode) -> None:
217215
}
218216
],
219217
provider_id="providerID",
220-
session_id="sessionID",
221218
) as response:
222219
assert not response.is_closed
223220
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -241,7 +238,6 @@ def test_path_params_chat(self, client: Opencode) -> None:
241238
}
242239
],
243240
provider_id="providerID",
244-
session_id="sessionID",
245241
)
246242

247243
@pytest.mark.skip()
@@ -629,7 +625,6 @@ async def test_method_chat(self, async_client: AsyncOpencode) -> None:
629625
}
630626
],
631627
provider_id="providerID",
632-
session_id="sessionID",
633628
)
634629
assert_matches_type(Message, session, path=["response"])
635630

@@ -646,7 +641,6 @@ async def test_raw_response_chat(self, async_client: AsyncOpencode) -> None:
646641
}
647642
],
648643
provider_id="providerID",
649-
session_id="sessionID",
650644
)
651645

652646
assert response.is_closed is True
@@ -667,7 +661,6 @@ async def test_streaming_response_chat(self, async_client: AsyncOpencode) -> Non
667661
}
668662
],
669663
provider_id="providerID",
670-
session_id="sessionID",
671664
) as response:
672665
assert not response.is_closed
673666
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -691,7 +684,6 @@ async def test_path_params_chat(self, async_client: AsyncOpencode) -> None:
691684
}
692685
],
693686
provider_id="providerID",
694-
session_id="sessionID",
695687
)
696688

697689
@pytest.mark.skip()

0 commit comments

Comments
 (0)