@retab/node 0.0.54 → 0.0.55
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/api/client.d.ts +0 -2
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +0 -2
- package/dist/oai_script.d.ts +0 -1
- package/dist/oai_script.js +1 -12
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -2,14 +2,12 @@ import { AbstractClient, CompositionClient } from "../client.js";
|
|
|
2
2
|
import APIModels from "./models/client";
|
|
3
3
|
import APIDocuments from "./documents/client";
|
|
4
4
|
import APISchemas from "./schemas/client";
|
|
5
|
-
import APIDeployments from "./deployments/client";
|
|
6
5
|
import APIProjects from "./projects/client";
|
|
7
6
|
export default class APIV1 extends CompositionClient {
|
|
8
7
|
constructor(client: AbstractClient);
|
|
9
8
|
models: APIModels;
|
|
10
9
|
documents: APIDocuments;
|
|
11
10
|
schemas: APISchemas;
|
|
12
|
-
deployments: APIDeployments;
|
|
13
11
|
projects: APIProjects;
|
|
14
12
|
}
|
|
15
13
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/api/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,iBAAiB;gBACpC,MAAM,EAAE,cAAc;IAGlC,MAAM,YAAuB;IAC7B,SAAS,eAA0B;IACnC,OAAO,aAAwB;IAC/B,QAAQ,cAAyB;CACpC"}
|
package/dist/api/client.js
CHANGED
|
@@ -2,7 +2,6 @@ import { CompositionClient } from "../client.js";
|
|
|
2
2
|
import APIModels from "./models/client";
|
|
3
3
|
import APIDocuments from "./documents/client";
|
|
4
4
|
import APISchemas from "./schemas/client";
|
|
5
|
-
import APIDeployments from "./deployments/client";
|
|
6
5
|
import APIProjects from "./projects/client";
|
|
7
6
|
export default class APIV1 extends CompositionClient {
|
|
8
7
|
constructor(client) {
|
|
@@ -10,7 +9,6 @@ export default class APIV1 extends CompositionClient {
|
|
|
10
9
|
this.models = new APIModels(this);
|
|
11
10
|
this.documents = new APIDocuments(this);
|
|
12
11
|
this.schemas = new APISchemas(this);
|
|
13
|
-
this.deployments = new APIDeployments(this);
|
|
14
12
|
this.projects = new APIProjects(this);
|
|
15
13
|
}
|
|
16
14
|
}
|
package/dist/oai_script.d.ts
CHANGED
package/dist/oai_script.js
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const client = new OpenAI();
|
|
3
|
-
const completion = await client.chat.completions.create({
|
|
4
|
-
model: "gpt-5",
|
|
5
|
-
messages: [
|
|
6
|
-
{
|
|
7
|
-
role: "user",
|
|
8
|
-
content: "Write a one-sentence bedtime story about a unicorn.",
|
|
9
|
-
},
|
|
10
|
-
],
|
|
11
|
-
});
|
|
12
|
-
console.log(completion.choices[0].message.content);
|
|
1
|
+
"use strict";
|