@naturali/sdk 0.78.0 → 0.78.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.d.cts +4 -2
- package/dist/index.d.mts +4 -2
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -3312,7 +3312,8 @@ type Model = {
|
|
|
3312
3312
|
*/
|
|
3313
3313
|
input_per_1k_tokens: number;
|
|
3314
3314
|
/**
|
|
3315
|
-
* USD per 1K output tokens.
|
|
3315
|
+
* USD per 1K output tokens. Reasoning ("thinking") tokens are output tokens: on a model that reasons by default they are counted in `output_tokens` and billed at this rate, and can be most of the output on a short answer. A rate alone therefore does not size a request on such a model.
|
|
3316
|
+
*
|
|
3316
3317
|
*/
|
|
3317
3318
|
output_per_1k_tokens: number;
|
|
3318
3319
|
/**
|
|
@@ -4036,6 +4037,7 @@ type UsageTokens = {
|
|
|
4036
4037
|
type UsageComponent = {
|
|
4037
4038
|
/**
|
|
4038
4039
|
* The measured dimension — input_tokens, cached_tokens, output_tokens, reasoning_tokens, compute_second, request, gb_day, …
|
|
4040
|
+
* Components are not always disjoint. `reasoning_tokens` is the part of `output_tokens` a reasoning model spent thinking: it is reported for visibility and priced as output, so its own `cost_usd` is null to keep it from being counted twice. On a model that reasons by default it can be most of the output — and most of the bill — for a short answer.
|
|
4039
4041
|
*
|
|
4040
4042
|
*/
|
|
4041
4043
|
component: string;
|
|
@@ -4049,7 +4051,7 @@ type UsageComponent = {
|
|
|
4049
4051
|
*/
|
|
4050
4052
|
quantity: number;
|
|
4051
4053
|
/**
|
|
4052
|
-
* Billing-grade cost in USD for this component; null when it was not priced. The quantity is still measured — null never means free.
|
|
4054
|
+
* Billing-grade cost in USD for this component; null when it was not priced, or when another component already prices it (as `output_tokens` prices `reasoning_tokens`). The quantity is still measured — null never means free.
|
|
4053
4055
|
*
|
|
4054
4056
|
*/
|
|
4055
4057
|
cost_usd: number | null;
|
package/dist/index.d.mts
CHANGED
|
@@ -3312,7 +3312,8 @@ type Model = {
|
|
|
3312
3312
|
*/
|
|
3313
3313
|
input_per_1k_tokens: number;
|
|
3314
3314
|
/**
|
|
3315
|
-
* USD per 1K output tokens.
|
|
3315
|
+
* USD per 1K output tokens. Reasoning ("thinking") tokens are output tokens: on a model that reasons by default they are counted in `output_tokens` and billed at this rate, and can be most of the output on a short answer. A rate alone therefore does not size a request on such a model.
|
|
3316
|
+
*
|
|
3316
3317
|
*/
|
|
3317
3318
|
output_per_1k_tokens: number;
|
|
3318
3319
|
/**
|
|
@@ -4036,6 +4037,7 @@ type UsageTokens = {
|
|
|
4036
4037
|
type UsageComponent = {
|
|
4037
4038
|
/**
|
|
4038
4039
|
* The measured dimension — input_tokens, cached_tokens, output_tokens, reasoning_tokens, compute_second, request, gb_day, …
|
|
4040
|
+
* Components are not always disjoint. `reasoning_tokens` is the part of `output_tokens` a reasoning model spent thinking: it is reported for visibility and priced as output, so its own `cost_usd` is null to keep it from being counted twice. On a model that reasons by default it can be most of the output — and most of the bill — for a short answer.
|
|
4039
4041
|
*
|
|
4040
4042
|
*/
|
|
4041
4043
|
component: string;
|
|
@@ -4049,7 +4051,7 @@ type UsageComponent = {
|
|
|
4049
4051
|
*/
|
|
4050
4052
|
quantity: number;
|
|
4051
4053
|
/**
|
|
4052
|
-
* Billing-grade cost in USD for this component; null when it was not priced. The quantity is still measured — null never means free.
|
|
4054
|
+
* Billing-grade cost in USD for this component; null when it was not priced, or when another component already prices it (as `output_tokens` prices `reasoning_tokens`). The quantity is still measured — null never means free.
|
|
4053
4055
|
*
|
|
4054
4056
|
*/
|
|
4055
4057
|
cost_usd: number | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.78.
|
|
3
|
+
"version": "0.78.1",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"tsx": "^4.23.1",
|
|
38
38
|
"typescript": "~6.0.3",
|
|
39
39
|
"vitest": "^4.1.10",
|
|
40
|
-
"@naturali/api": "0.78.
|
|
40
|
+
"@naturali/api": "0.78.1"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"generate": "tsx scripts/generate.ts",
|