@t2000/sdk 8.0.0 → 8.0.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/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1902,7 +1902,7 @@ function resolveApiKey(apiKey) {
|
|
|
1902
1902
|
if (!key) {
|
|
1903
1903
|
throw new exports.T2000Error(
|
|
1904
1904
|
"INVALID_KEY",
|
|
1905
|
-
"No Private
|
|
1905
|
+
"No Private Inference key. Pass `apiKey` or set T2000_API_KEY. Generate one at agents.t2000.ai/manage."
|
|
1906
1906
|
);
|
|
1907
1907
|
}
|
|
1908
1908
|
return key;
|
|
@@ -2613,9 +2613,9 @@ var T2000 = class _T2000 extends eventemitter3.EventEmitter {
|
|
|
2613
2613
|
//
|
|
2614
2614
|
// Inference as a wallet verb — the agent's brain + wallet in one package.
|
|
2615
2615
|
// Key-based today (`apiKey` / `T2000_API_KEY`); the x402 no-key pay-per-call
|
|
2616
|
-
// path is a later add. The model runs on
|
|
2616
|
+
// path is a later add. The model runs on t2000 Private Inference (ZDR; a
|
|
2617
2617
|
// `phala/*` confidential tier runs in a GPU-TEE).
|
|
2618
|
-
/** Non-streaming chat completion against
|
|
2618
|
+
/** Non-streaming chat completion against Private Inference. */
|
|
2619
2619
|
async chat(params) {
|
|
2620
2620
|
return chatCompletion(params);
|
|
2621
2621
|
}
|
|
@@ -2624,7 +2624,7 @@ var T2000 = class _T2000 extends eventemitter3.EventEmitter {
|
|
|
2624
2624
|
chatStream(params) {
|
|
2625
2625
|
return chatCompletionStream(params);
|
|
2626
2626
|
}
|
|
2627
|
-
/** The Private
|
|
2627
|
+
/** The Private Inference model catalog (`GET /v1/models`). */
|
|
2628
2628
|
async models(opts) {
|
|
2629
2629
|
return listModels(opts);
|
|
2630
2630
|
}
|