@naturali/cli 0.103.1 → 0.103.2
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.mjs +7 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.103.
|
|
17
|
+
var version = "0.103.2";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -2104,6 +2104,11 @@ var Embeddings = class {
|
|
|
2104
2104
|
* Provide `input` for a single text or `inputs` for a batch. At least one is required.
|
|
2105
2105
|
* Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.
|
|
2106
2106
|
*
|
|
2107
|
+
* `project_id` names the project the call's token usage is metered against, so
|
|
2108
|
+
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
2109
|
+
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
2110
|
+
* none and is bound to none is served but not metered.
|
|
2111
|
+
*
|
|
2107
2112
|
*/
|
|
2108
2113
|
static createEmbeddings(options) {
|
|
2109
2114
|
return (options.client ?? client).post({
|
|
@@ -9419,7 +9424,7 @@ const routes = {
|
|
|
9419
9424
|
"create-embeddings": {
|
|
9420
9425
|
serviceClass: "Embeddings",
|
|
9421
9426
|
operationId: "createEmbeddings",
|
|
9422
|
-
description: "Generates embedding vectors for one or more text inputs using the server's configured embedding model. Provide `input` for a single text or `inputs` for a batch. At least one is required. Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.",
|
|
9427
|
+
description: "Generates embedding vectors for one or more text inputs using the server's configured embedding model. Provide `input` for a single text or `inputs` for a batch. At least one is required. Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used. `project_id` names the project the call's token usage is metered against, so embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens` quotas. A project-scoped credential supplies its own project; a call that names none and is bound to none is served but not metered.",
|
|
9423
9428
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/embeddings",
|
|
9424
9429
|
httpMethod: "post",
|
|
9425
9430
|
pathParams: ["project_id"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.103.
|
|
3
|
+
"version": "0.103.2",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsx": "^4.23.1",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@naturali/sdk": "0.103.
|
|
33
|
+
"@naturali/sdk": "0.103.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|