Skip to content

Commit 724df9b

Browse files
authored
fix: correct RPC method call in ClientSideConnection.setSessionModel() (#7)
The setSessionModel method was incorrectly calling session_set_mode instead of session_set_model, causing parameter validation errors. Changed line 598 in src/acp.ts to use the correct RPC method. Fixes: Parameter validation error when calling setSessionModel()
1 parent c0ff534 commit 724df9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/acp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ export class ClientSideConnection implements Agent {
595595
): Promise<schema.SetSessionModelResponse> {
596596
return (
597597
(await this.#connection.sendRequest(
598-
schema.AGENT_METHODS.session_set_mode,
598+
schema.AGENT_METHODS.session_set_model,
599599
params,
600600
)) ?? {}
601601
);

0 commit comments

Comments
 (0)