Open vrslev opened 1 week ago
This works:
[llm-ui][llm-ui-link] hello [llm-ui-link]: https://github.com/llm-ui-kit/llm-ui
This does not:
[llm-ui][llm-ui-link]
hello
[llm-ui-link]: https://github.com/llm-ui-kit/llm-ui
I think, it happens because code block is not detected correctly. I use useLLMOutput as documentation suggests:
useLLMOutput
const { blockMatches } = useLLMOutput({ llmOutput: ..., fallbackBlock: { component: MarkdownComponent, lookBack: markdownLookBack(), }, blocks: [ { component: CodeBlock, findCompleteMatch: findCompleteCodeBlock(), findPartialMatch: findPartialCodeBlock(), lookBack: codeBlockLookBack(), }, ], isStreamFinished: true, });
Hey @vrslev thanks for the report. This is definitely a bug.
I'll try and fix it for you in the next couple of days 👍
Thanks, really appreciate it ❤️
Hey @richardgill Any update on this?
This works:
This does not:
hello
I think, it happens because code block is not detected correctly. I use
useLLMOutput
as documentation suggests: