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