@botpress/cognitive 0.3.5 → 0.3.6

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.
@@ -1,28 +1,28 @@
1
1
 
2
- > @botpress/cognitive@0.3.5 build /home/runner/work/botpress/botpress/packages/cognitive
2
+ > @botpress/cognitive@0.3.6 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.5 build:type /home/runner/work/botpress/botpress/packages/cognitive
6
+ > @botpress/cognitive@0.3.6 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 6826ms
13
+ DTS ⚡️ Build success in 6859ms
14
14
  DTS dist/index.d.ts 663.58 KB
15
15
 
16
- > @botpress/cognitive@0.3.5 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
16
+ > @botpress/cognitive@0.3.6 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
  dist/index.cjs
22
22
  Size limit: 50 kB
23
- Size: 15.26 kB brotlied
23
+ Size: 15.27 kB brotlied
24
24
 
25
25
  dist/index.mjs
26
26
  Size limit: 50 kB
27
- Size: 15.12 kB brotlied
27
+ Size: 15.13 kB brotlied
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) {