Regression breaking AI chat query

Regression introduced in AI Chat query

Possibly over the weekend (or when migrating from .messageHistory to .chatHistory AI queries have stopped working with the error: "Expected message history to be an array", see screenshot.

.ChatHistory is of type string not of type array.

Chat bot will also not take empty for chat query, message history input as it throws the same error, so breaking bug.

Also won't except manually entered arrays.

image

image

Hi @Bridgy666, welcome to the forum! :wave:

We were able to reproduce this issue. For the "Expected message history to be an array" error, it should go away by transforming the results of your "chat_MarketData_query1" query:

But as you mentioned, even if it is an array, the query fails to run with the following error:

We created a bug report for this issue and will update you here when it's fixed.