Skip to content

Conversation

@mudler
Copy link
Owner

@mudler mudler commented Aug 4, 2023

Description

This is a guard from the model returning newlines which are not allowed in JSON - as such we escape them with \\n

Notes for Reviewers

Since #862 now strings contains newlines, and as such JSON can output multi-line text as well now.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler added the bug Something isn't working label Aug 4, 2023
@mudler mudler merged commit acd829a into master Aug 4, 2023
@mudler mudler deleted the functions_newlines branch August 4, 2023 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants