@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/dist/index.mjs CHANGED
@@ -2389,7 +2389,7 @@ var Cognitive = class _Cognitive {
2389
2389
  return def;
2390
2390
  }
2391
2391
  async generateContent(input) {
2392
- if (!this._useBeta || !getCognitiveV2Model(input.model)) {
2392
+ if (!this._useBeta || !input.model || !getCognitiveV2Model(input.model)) {
2393
2393
  return this._generateContent(input);
2394
2394
  }
2395
2395
  if (input.systemPrompt) {