Okay, as it turns out, I think this has to do with how the REPL prints strings, not how it parses them.
Simply pasting the following string into the repl will print a mangled string as output:
"\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}}"
Oh....this bug....yep
I think we need to change the repl to use inspect to generate what it prints
Currently, it uses a special mem map thing and it probably has a bug
yeah its output is older than Inspect
:sweat_smile:
Okay, I filed an issue for this.
Ian McLerran has marked this topic as resolved.
Last updated: Jul 06 2025 at 12:14 UTC