@steve31415/baselib 3.16.0 → 3.18.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.
@@ -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 ? (request.effort ?? modelEntry.defaultEffort) : undefined,
70
+ effort: modelEntry.supportsEffort ? request.effort : undefined,
71
71
  jsonSchema: request.jsonSchema,
72
72
  apiKey,
73
73
  logger: request.logger,
@@ -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
@@ -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,
@@ -146,6 +147,17 @@ export const MODEL_REGISTRY = {
146
147
  apiModelId: 'claude-opus-4-6',
147
148
  fallbacks: ['gpt-5.6-sol', 'gemini-3.1-pro-preview'],
148
149
  },
150
+ // Released 2026-09-22; same limits as gpt-5.6-sol (1.05M / 128k). Verified
151
+ // live that day: rejects non-default temperature (400 unsupported_value),
152
+ // reasons by default, accepts strict json_schema. Registered for Dossier;
153
+ // no other chain routes through it yet (model moves are Steve's call).
154
+ 'gpt-6-sol': {
155
+ provider: 'openai',
156
+ apiModelId: 'gpt-6-sol',
157
+ fallbacks: ['claude-opus-5-5', 'gemini-3.1-pro-preview'],
158
+ supportsTemperature: false,
159
+ thinksByDefault: true,
160
+ },
149
161
  'gpt-5.6-sol': {
150
162
  provider: 'openai',
151
163
  apiModelId: 'gpt-5.6-sol',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steve31415/baselib",
3
- "version": "3.16.0",
3
+ "version": "3.18.0",
4
4
  "description": "Plasticine new-world shared platform library: logging, auth, service-to-service auth, db, HTTP, sync, app updates",
5
5
  "type": "module",
6
6
  "license": "MIT",