@botpress/cognitive 0.3.5 → 0.3.7
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/.turbo/turbo-build.log +6 -6
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -1
- package/vitest.config.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/cognitive@0.3.
|
|
2
|
+
> @botpress/cognitive@0.3.7 build /home/runner/work/botpress/botpress/packages/cognitive
|
|
3
3
|
> pnpm build:type && pnpm build:neutral && size-limit
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @botpress/cognitive@0.3.
|
|
6
|
+
> @botpress/cognitive@0.3.7 build:type /home/runner/work/botpress/botpress/packages/cognitive
|
|
7
7
|
> tsup --tsconfig tsconfig.build.json ./src/index.ts --dts-resolve --dts-only --clean
|
|
8
8
|
|
|
9
9
|
CLI Building entry: ./src/index.ts
|
|
10
10
|
CLI Using tsconfig: tsconfig.build.json
|
|
11
11
|
CLI tsup v8.0.2
|
|
12
12
|
DTS Build start
|
|
13
|
-
DTS ⚡️ Build success in
|
|
13
|
+
DTS ⚡️ Build success in 7067ms
|
|
14
14
|
DTS dist/index.d.ts 663.58 KB
|
|
15
15
|
|
|
16
|
-
> @botpress/cognitive@0.3.
|
|
16
|
+
> @botpress/cognitive@0.3.7 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
|
|
17
17
|
> ts-node -T ./build.ts --neutral
|
|
18
18
|
|
|
19
19
|
Done
|
|
20
20
|
|
|
21
21
|
[1mdist/index.cjs[22m
|
|
22
22
|
Size limit: [32m[1m50 kB[22m[39m
|
|
23
|
-
Size: [32m[1m15.
|
|
23
|
+
Size: [32m[1m15.27 kB[22m[39m [90mbrotlied[39m
|
|
24
24
|
|
|
25
25
|
[1mdist/index.mjs[22m
|
|
26
26
|
Size limit: [32m[1m50 kB[22m[39m
|
|
27
|
-
Size: [32m[1m15.
|
|
27
|
+
Size: [32m[1m15.13 kB[22m[39m [90mbrotlied[39m
|
|
28
28
|
|
package/dist/index.cjs
CHANGED
|
@@ -2405,7 +2405,7 @@ var Cognitive = class _Cognitive {
|
|
|
2405
2405
|
return def;
|
|
2406
2406
|
}
|
|
2407
2407
|
async generateContent(input) {
|
|
2408
|
-
if (!this._useBeta || !getCognitiveV2Model(input.model)) {
|
|
2408
|
+
if (!this._useBeta || !input.model || !getCognitiveV2Model(input.model)) {
|
|
2409
2409
|
return this._generateContent(input);
|
|
2410
2410
|
}
|
|
2411
2411
|
if (input.systemPrompt) {
|