@ampcode/plugin 0.0.0-20261111001139-g66076eb → 0.0.0-20261112001220-gbe68d4b
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/index.d.ts +4 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -955,9 +955,10 @@ declare module '@ampcode/plugin' {
|
|
|
955
955
|
* still be wrong, and adversarial text inside `state` can move it.
|
|
956
956
|
*
|
|
957
957
|
* TypeSafe's Jev answers unless you pass {@link DecisionOptions.model}, and
|
|
958
|
-
* {@link DecisionResult.model} reports the version that answered.
|
|
959
|
-
*
|
|
960
|
-
*
|
|
958
|
+
* {@link DecisionResult.model} reports the version that answered. Calls charge the thread's
|
|
959
|
+
* payer for input tokens at the model's list price (Jev: $0.042 per million). The call
|
|
960
|
+
* rejects when the thread's workspace has disabled the model or the payer is out of credits,
|
|
961
|
+
* so handle the error where a decision is optional.
|
|
961
962
|
*
|
|
962
963
|
* Calls are routed through the current thread. Pass `threadID` when calling outside a
|
|
963
964
|
* thread-bound handler.
|
package/package.json
CHANGED