@startsimpli/llm 0.4.15 → 0.4.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startsimpli/llm",
3
- "version": "0.4.15",
3
+ "version": "0.4.16",
4
4
  "description": "Generic LLM service infrastructure — provider abstraction, retry logic, JSON extraction",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -365,5 +365,13 @@ export function createAnthropicProvider(): AnthropicProvider | null {
365
365
  apiKey,
366
366
  baseUrl: process.env.ANTHROPIC_BASE_URL,
367
367
  defaultModel: process.env.ANTHROPIC_MODEL,
368
+ // A DEPLOYMENT CAN BUY ITSELF MORE TIME, and one needs to. The 60-second
369
+ // default is right for an interactive answer and wrong for a batch job: a
370
+ // commitment-extraction call over two meeting summaries takes longer than
371
+ // that (measured — one document 19.6s, two documents timed out), and the
372
+ // failure is silent, because the caller is written to keep its deterministic
373
+ // half when the model is unreachable. So the symptom of "too big a batch" is
374
+ // an extraction that quietly finds nothing.
375
+ timeoutMs: Number(process.env.LLM_TIMEOUT_MS) || undefined,
368
376
  });
369
377
  }
@@ -430,5 +430,9 @@ export function createOpenAIProvider(): OpenAIProvider | null {
430
430
  apiKey,
431
431
  baseUrl: process.env.OPENAI_BASE_URL,
432
432
  defaultModel: process.env.OPENAI_MODEL,
433
+ // Same knob as the Anthropic factory next door — one provider honouring a
434
+ // deployment's timeout and the other ignoring it is the kind of asymmetry
435
+ // that only shows up as a provider-dependent bug at 3am.
436
+ timeoutMs: Number(process.env.LLM_TIMEOUT_MS) || undefined,
433
437
  });
434
438
  }