fix: Ensure that we properly format data outputs in the chat (#8132)
* fix: If a list is returned, make sure we convert to string * Prettify the data output * Updates based on feedback, safe encoding * Fix chat output unit test * Ensure all starter projects are updated
This commit is contained in:
parent
e8f4dba133
commit
6c58c6efc3
35 changed files with 51 additions and 41 deletions
|
|
@ -53,7 +53,7 @@ class TestChatOutput(ComponentTestBaseWithClient):
|
|||
data = Data(text="Test data message")
|
||||
component.input_value = data
|
||||
result = await component.message_response()
|
||||
assert result.text == "Test data message"
|
||||
assert result.text == '```json\n{\n "text": "Test data message"\n}\n```'
|
||||
assert result.sender == MESSAGE_SENDER_AI
|
||||
|
||||
async def test_process_dataframe_input(self, component_class, default_kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue