@modelrelay/sdk 0.5.0 → 0.14.1
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 +1 -1
- package/dist/index.cjs +956 -59
- package/dist/index.d.cts +664 -26
- package/dist/index.d.ts +664 -26
- package/dist/index.js +921 -56
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -84,7 +84,7 @@ const stream = await mr.chat.completions.create(
|
|
|
84
84
|
|
|
85
85
|
### Typed models, providers, and stop reasons
|
|
86
86
|
|
|
87
|
-
- Models and providers use string literal unions with an `Other` escape hatch: pass `{ other: "my-provider" }` or `{ other: "custom/model-x" }` to preserve custom IDs while benefiting from autocomplete on known values (e.g., `Models.
|
|
87
|
+
- Models and providers use string literal unions with an `Other` escape hatch: pass `{ other: "my-provider" }` or `{ other: "custom/model-x" }` to preserve custom IDs while benefiting from autocomplete on known values (e.g., `Models.Gpt4o`, `Providers.Anthropic`).
|
|
88
88
|
- Stop reasons are parsed into the `StopReason` union (e.g., `StopReasons.EndTurn`); unknown values surface as `{ other: "<raw>" }`.
|
|
89
89
|
- Usage backfills `totalTokens` when providers omit it, ensuring consistent accounting.
|
|
90
90
|
|