Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPL mangles string output on long strings. #6753

Open
imclerran opened this issue May 15, 2024 · 0 comments
Open

REPL mangles string output on long strings. #6753

imclerran opened this issue May 15, 2024 · 0 comments

Comments

@imclerran
Copy link

imclerran commented May 15, 2024

For example, pasting the following string into the REPL:

"\n         \n{\"id\":\"gen-dSzo4A3JWSjm3ynwIjVn8gMrcOe1\",\"model\":\"mistralai/mixtral-8x7b-instruct\",\"object\":\"chat.completion\",\"created\":1715710439,\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"Hello! I'm here to help. What's your question today? I'll do my best to provide a concise and friendly answer.\"},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":51,\"completion_tokens\":27,\"total_tokens\":78}}"

will produce the following output:

"""

         
{"id":"gen-dSzo4A3JWSdsocanwfes"{_:pt2l"}"model":"mistralai/mixtral-8x7b-instruct","object":"chat.completion","created":1715710439,"choices":[{"index":0,"message":{"role":"assistant","content":"Hello! I'm here to help. What's your question today
""" : Str

As per zulip, the REPL should probably be updated to use inspect to print it's output, rather than the current memory map implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant