wingbot 3.74.7 → 3.74.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/ChatGpt.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.74.7",
3
+ "version": "3.74.8",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
package/src/ChatGpt.js CHANGED
@@ -311,7 +311,8 @@ class ChatGpt {
311
311
  responseFormat
312
312
  } = {
313
313
  ...this._options,
314
- ...requestOptions
314
+ ...requestOptions,
315
+ model: requestOptions.model ?? this._options.model
315
316
  };
316
317
 
317
318
  let messages = chat.map((msg) => {