@t2000/sdk 5.20.1 → 5.21.0
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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -46,6 +46,9 @@ interface ApiModel {
|
|
|
46
46
|
outputPer1M?: number;
|
|
47
47
|
/** Privacy tier surfaced by the API (e.g. `zdr`, `confidential`). */
|
|
48
48
|
privacy?: string;
|
|
49
|
+
/** True for reasoning models — deeper but slower (a hidden reasoning trace
|
|
50
|
+
* before the answer). Surfaced so callers pick the speed/depth tradeoff. */
|
|
51
|
+
reasoning?: boolean;
|
|
49
52
|
}
|
|
50
53
|
/** Non-streaming chat completion. Returns the assistant text + usage + the
|
|
51
54
|
* verbatim OpenAI response body. */
|
package/dist/index.d.ts
CHANGED
|
@@ -46,6 +46,9 @@ interface ApiModel {
|
|
|
46
46
|
outputPer1M?: number;
|
|
47
47
|
/** Privacy tier surfaced by the API (e.g. `zdr`, `confidential`). */
|
|
48
48
|
privacy?: string;
|
|
49
|
+
/** True for reasoning models — deeper but slower (a hidden reasoning trace
|
|
50
|
+
* before the answer). Surfaced so callers pick the speed/depth tradeoff. */
|
|
51
|
+
reasoning?: boolean;
|
|
49
52
|
}
|
|
50
53
|
/** Non-streaming chat completion. Returns the assistant text + usage + the
|
|
51
54
|
* verbatim OpenAI response body. */
|
package/dist/index.js
CHANGED
|
@@ -2024,7 +2024,8 @@ async function listModels(opts) {
|
|
|
2024
2024
|
contextWindow: m.context_window ?? m.context_length,
|
|
2025
2025
|
inputPer1M: m.pricing?.input_per_1m ?? m.pricing?.prompt,
|
|
2026
2026
|
outputPer1M: m.pricing?.output_per_1m ?? m.pricing?.completion,
|
|
2027
|
-
privacy: m.privacy ?? m.privacy_tier
|
|
2027
|
+
privacy: m.privacy ?? m.privacy_tier,
|
|
2028
|
+
reasoning: m.reasoning
|
|
2028
2029
|
}));
|
|
2029
2030
|
}
|
|
2030
2031
|
var RECEIPT_ANCHORED_SUFFIX = "::anchor::ReceiptAnchored";
|