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 +9 -3
- package/dist/index.cjs +678 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +4 -5
- package/dist/index.js +1 -30
- package/dist/normalize.cjs +353 -4
- package/dist/normalize.cjs.map +1 -1
- package/dist/normalize.d.cts +1 -1
- package/dist/normalize.d.ts +2 -2
- package/dist/parse.cjs +60 -7
- package/dist/parse.cjs.map +1 -1
- package/dist/{provider-core-BUaKKLpd.d.cts → provider-core-DinpG40u.d.cts} +1 -1
- package/dist/{provider-core-BUaKKLpd.d.ts → provider-core-DinpG40u.d.ts} +1 -1
- package/dist/providers.cjs +584 -40
- package/dist/providers.cjs.map +1 -1
- package/dist/providers.d.cts +2 -2
- package/dist/providers.d.ts +2 -2
- package/dist/providers.js +170 -5
- package/dist/providers.js.map +1 -1
- package/dist/validate.cjs +663 -6
- package/dist/validate.cjs.map +1 -1
- package/package.json +4 -3
- package/dist/chunk-6P5GSSNW.js +0 -176
- package/dist/chunk-6P5GSSNW.js.map +0 -1
- package/dist/chunk-MGWGNZDJ.cjs +0 -116
- package/dist/chunk-MGWGNZDJ.cjs.map +0 -1
- package/dist/chunk-N6NVBE43.cjs +0 -37
- package/dist/chunk-N6NVBE43.cjs.map +0 -1
- package/dist/chunk-NSCBY4VD.cjs +0 -370
- package/dist/chunk-NSCBY4VD.cjs.map +0 -1
- package/dist/chunk-RR3VXIW2.cjs +0 -176
- package/dist/chunk-RR3VXIW2.cjs.map +0 -1
- package/dist/chunk-RSUXM42X.cjs +0 -180
- package/dist/chunk-RSUXM42X.cjs.map +0 -1
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
|
|
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})`));
|