feat: get_available_thinking_levels rpc (#6865)

This commit is contained in:
Cristina Poncela Cubeiro
2026-07-20 16:29:10 +02:00
committed by GitHub
parent 1942b2600f
commit c179395218
5 changed files with 63 additions and 0 deletions
@@ -280,6 +280,14 @@ export class RpcClient {
return this.getData(response);
}
/**
* Get list of available thinking levels for the current model.
*/
async getAvailableThinkingLevels(): Promise<ThinkingLevel[]> {
const response = await this.send({ type: "get_available_thinking_levels" });
return this.getData<{ levels: ThinkingLevel[] }>(response).levels;
}
/**
* Set steering mode.
*/