llm-strings 1.1.0 → 1.1.2

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/README.md CHANGED
@@ -247,7 +247,8 @@ const url = build({
247
247
  ### AWS Bedrock with cross-region inference
248
248
 
249
249
  ```ts
250
- import { parse, normalize, detectBedrockModelFamily } from "llm-strings";
250
+ import { parse, normalize } from "llm-strings";
251
+ import { detectBedrockModelFamily } from "llm-strings/providers";
251
252
 
252
253
  const config = parse(
253
254
  "llm://bedrock-runtime.us-east-1.amazonaws.com/us.anthropic.claude-sonnet-4-5-20250929-v1:0?temp=0.5&max=4096"
@@ -407,6 +408,7 @@ Returns `true` if the Bedrock model supports prompt caching (Claude and Nova mod
407
408
  Full type definitions ship with the package:
408
409
 
409
410
  ```ts
411
+ // Core types from the main entry
410
412
  import type {
411
413
  LlmConnectionConfig,
412
414
  NormalizeResult,
@@ -414,12 +416,16 @@ import type {
414
416
  NormalizeOptions,
415
417
  ValidateOptions,
416
418
  ValidationIssue,
419
+ } from "llm-strings";
420
+
421
+ // Provider types from the providers sub-path
422
+ import type {
417
423
  Provider,
418
424
  BedrockModelFamily,
419
425
  ParamSpec,
420
426
  ProviderMeta,
421
427
  CanonicalParamSpec,
422
- } from "llm-strings";
428
+ } from "llm-strings/providers";
423
429
  ```
424
430
 
425
431
  ## Provider Metadata (for UI integrations)
@@ -427,7 +433,7 @@ import type {
427
433
  The library exports metadata useful for building UIs — provider names, brand colors, suggested models, and canonical parameter specs:
428
434
 
429
435
  ```ts
430
- import { PROVIDER_META, MODELS, CANONICAL_PARAM_SPECS } from "llm-strings";
436
+ import { PROVIDER_META, MODELS, CANONICAL_PARAM_SPECS } from "llm-strings/providers";
431
437
 
432
438
  // Provider display info
433
439
  PROVIDER_META.forEach((p) => console.log(`${p.name}: ${p.host} (${p.color})`));