From 2040edebcb7717809c8431eb77f2d97ff64a15e7 Mon Sep 17 00:00:00 2001 From: Tobias Geier Date: Wed, 25 Dec 2024 12:06:51 +0100 Subject: [PATCH] Update openai-ai-provider.js Fixed a bug with the response data --- lib/openai-ai-provider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/openai-ai-provider.js b/lib/openai-ai-provider.js index 1742943..78370ab 100644 --- a/lib/openai-ai-provider.js +++ b/lib/openai-ai-provider.js @@ -121,7 +121,7 @@ class OpenAiProvider { const data = await response.json(); this.adapter.log.debug(`Data: ` + JSON.stringify(data)); - this.adapter.setStateAsync("Tools." +this.bot.bot_name + ".response.raw", { val: JSON.stringify(data), ack: true }); + this.responseData = data; if (!data) { this.adapter.log.warn(`No data from API error`);