@steve31415/baselib 3.17.0 → 3.19.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.
@@ -147,6 +147,17 @@ export const MODEL_REGISTRY = {
147
147
  apiModelId: 'claude-opus-4-6',
148
148
  fallbacks: ['gpt-5.6-sol', 'gemini-3.1-pro-preview'],
149
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
+ },
150
161
  'gpt-5.6-sol': {
151
162
  provider: 'openai',
152
163
  apiModelId: 'gpt-5.6-sol',
@@ -154,6 +154,7 @@ export const anthropicProvider = {
154
154
  const cacheReadTokens = data.usage?.cache_read_input_tokens ?? undefined;
155
155
  const cacheCreationTokens = data.usage?.cache_creation_input_tokens ?? undefined;
156
156
  const finishReason = data.stop_reason ?? undefined;
157
+ const stopCategory = data.stop_details?.category ?? undefined;
157
158
  let text;
158
159
  let json;
159
160
  if (useOutputFormat) {
@@ -178,6 +179,7 @@ export const anthropicProvider = {
178
179
  request.logger?.info('llm.response', {
179
180
  provider: 'anthropic', model: request.apiModelId,
180
181
  status: response.status, latencyMs, tokensUsed, outputTokens, finishReason,
182
+ ...(stopCategory ? { stopCategory } : {}),
181
183
  ...(cacheReadTokens !== undefined ? { cacheReadTokens } : {}),
182
184
  ...(cacheCreationTokens !== undefined ? { cacheCreationTokens } : {}),
183
185
  ...(request.callSite ? { callSite: request.callSite } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steve31415/baselib",
3
- "version": "3.17.0",
3
+ "version": "3.19.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",