wingbot 3.77.0-alpha.1 → 3.77.0-alpha.2

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 +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.77.0-alpha.1",
3
+ "version": "3.77.0-alpha.2",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
package/src/ChatGpt.js CHANGED
@@ -450,8 +450,10 @@ class ChatGpt {
450
450
  ...(requestTokens ? {
451
451
  max_completion_tokens: requestTokens
452
452
  } : {}),
453
+ // Chat Completions takes "reasoning_effort" ("reasoning: { effort }" is the
454
+ // Responses API - here 400 Unknown parameter)
453
455
  ...(reasoningEffort ? {
454
- reasoning: { effort: reasoningEffort }
456
+ reasoning_effort: reasoningEffort
455
457
  } : {}),
456
458
  ...(typeof parallelToolCalls === 'boolean' ? {
457
459
  parallel_tool_calls: parallelToolCalls