llm-ui
llm-ui copied to clipboard
Link reference definitions are ignored if code block exists between definition and destination
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:
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?
Hi, I'm no longer using llm-ui. Reopen the issue if you will have interest in working on the issue.