Skip to content

Commit 20d7565

Browse files
feat: add support for new model
1 parent 9077911 commit 20d7565

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
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: 117
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/letta-ai%2Fletta-sdk-4e14f08c6f1c6bc43d4ade3d273ed496dcd340f54f94f5186bfae7855bfc41d2.yml
3-
openapi_spec_hash: 68cc3920d034bba6b9e1ccfc34ec42f7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/letta-ai%2Fletta-sdk-72d68eb660b2380c44658a99cbd18aa20c72ce9a523c34972a597279b313623f.yml
3+
openapi_spec_hash: 511575ae33907bbfdd6909567ae868d3
44
config_hash: 679cc6b0aae84dcf2facfb0ed1151c0f

src/resources/agents/agents.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,12 @@ export type AgentType =
740740
| 'voice_sleeptime_agent';
741741

742742
export interface AnthropicModelSettings {
743+
/**
744+
* Effort level for Opus 4.5 model (controls token conservation). Not setting this
745+
* gives similar performance to 'high'.
746+
*/
747+
effort?: 'low' | 'medium' | 'high' | null;
748+
743749
/**
744750
* The maximum number of tokens the model can generate.
745751
*/

src/resources/models/models.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,12 @@ export interface LlmConfig {
251251
*/
252252
display_name?: string | null;
253253

254+
/**
255+
* The effort level for Anthropic Opus 4.5 model (controls token spending). Not
256+
* setting this gives similar performance to 'high'.
257+
*/
258+
effort?: 'low' | 'medium' | 'high' | null;
259+
254260
/**
255261
* Whether or not the model should use extended thinking if it is a 'reasoning'
256262
* style model
@@ -401,6 +407,12 @@ export interface Model {
401407
*/
402408
display_name?: string | null;
403409

410+
/**
411+
* The effort level for Anthropic Opus 4.5 model (controls token spending). Not
412+
* setting this gives similar performance to 'high'.
413+
*/
414+
effort?: 'low' | 'medium' | 'high' | null;
415+
404416
/**
405417
* @deprecated Deprecated: Whether or not the model should use extended thinking if
406418
* it is a 'reasoning' style model.

0 commit comments

Comments
 (0)