@steve31415/baselib 3.16.0 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/llm/complete.js +1 -1
- package/dist/llm/models.d.ts +0 -8
- package/dist/llm/models.js +3 -2
- package/package.json +1 -1
package/dist/llm/complete.js
CHANGED
|
@@ -67,7 +67,7 @@ export async function llmComplete(request) {
|
|
|
67
67
|
supportsTemperature: modelEntry.supportsTemperature ?? true,
|
|
68
68
|
supportsThinkingBudgetZero: modelEntry.supportsThinkingBudgetZero ?? true,
|
|
69
69
|
supportsForcedToolChoice: modelEntry.supportsForcedToolChoice ?? true,
|
|
70
|
-
effort: modelEntry.supportsEffort ?
|
|
70
|
+
effort: modelEntry.supportsEffort ? request.effort : undefined,
|
|
71
71
|
jsonSchema: request.jsonSchema,
|
|
72
72
|
apiKey,
|
|
73
73
|
logger: request.logger,
|
package/dist/llm/models.d.ts
CHANGED
|
@@ -49,14 +49,6 @@ export interface ModelEntry {
|
|
|
49
49
|
* `output_config.format` instead.
|
|
50
50
|
*/
|
|
51
51
|
supportsForcedToolChoice?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Effort level sent when the caller passes none (effort-capable models
|
|
54
|
-
* only). Absent means "send nothing and take the provider's default".
|
|
55
|
-
* Opus 5.5's API default is `medium`, one level below Opus 5's `high`; the
|
|
56
|
-
* registry pins `high` so moving a call site from Opus 5 to Opus 5.5 does
|
|
57
|
-
* not silently lower its effort.
|
|
58
|
-
*/
|
|
59
|
-
defaultEffort?: 'low' | 'medium' | 'high';
|
|
60
52
|
}
|
|
61
53
|
/**
|
|
62
54
|
* Output budget below which a `thinksByDefault` model is considered at risk of
|
package/dist/llm/models.js
CHANGED
|
@@ -109,12 +109,13 @@ export const MODEL_REGISTRY = {
|
|
|
109
109
|
'claude-opus-5-5': {
|
|
110
110
|
provider: 'anthropic',
|
|
111
111
|
supportsEffort: true,
|
|
112
|
-
defaultEffort: 'high',
|
|
113
112
|
apiModelId: 'claude-opus-5-5',
|
|
114
113
|
fallbacks: ['gpt-5.6-sol', 'gemini-3.1-pro-preview'],
|
|
115
114
|
// All verified live 2026-09-22: rejects `temperature` and forced
|
|
116
115
|
// tool_choice (400 each); thinking is always on and its tokens count
|
|
117
|
-
// against `maxTokens`.
|
|
116
|
+
// against `maxTokens`. With no `effort` passed the API runs at `medium`
|
|
117
|
+
// (Opus 5's default was `high`) — deliberately left as is (Steve,
|
|
118
|
+
// 2026-09-22: medium suits 5.5's capabilities).
|
|
118
119
|
supportsTemperature: false,
|
|
119
120
|
supportsForcedToolChoice: false,
|
|
120
121
|
thinksByDefault: true,
|
package/package.json
CHANGED