mirror of
https://github.com/anomalyco/opencode-sdk-python.git
synced 2026-04-29 13:09:52 +00:00
feat(api): api update
This commit is contained in:
parent
4e7027e1d9
commit
1de4987d50
13 changed files with 139 additions and 104 deletions
|
|
@ -163,6 +163,7 @@ class SessionResource(SyncAPIResource):
|
|||
provider_id: str,
|
||||
message_id: str | NotGiven = NOT_GIVEN,
|
||||
mode: str | NotGiven = NOT_GIVEN,
|
||||
system: str | NotGiven = NOT_GIVEN,
|
||||
tools: Dict[str, bool] | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
|
|
@ -196,6 +197,7 @@ class SessionResource(SyncAPIResource):
|
|||
"provider_id": provider_id,
|
||||
"message_id": message_id,
|
||||
"mode": mode,
|
||||
"system": system,
|
||||
"tools": tools,
|
||||
},
|
||||
session_chat_params.SessionChatParams,
|
||||
|
|
@ -606,6 +608,7 @@ class AsyncSessionResource(AsyncAPIResource):
|
|||
provider_id: str,
|
||||
message_id: str | NotGiven = NOT_GIVEN,
|
||||
mode: str | NotGiven = NOT_GIVEN,
|
||||
system: str | NotGiven = NOT_GIVEN,
|
||||
tools: Dict[str, bool] | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
|
|
@ -639,6 +642,7 @@ class AsyncSessionResource(AsyncAPIResource):
|
|||
"provider_id": provider_id,
|
||||
"message_id": message_id,
|
||||
"mode": mode,
|
||||
"system": system,
|
||||
"tools": tools,
|
||||
},
|
||||
session_chat_params.SessionChatParams,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue