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

When the content generated contains HTML that triggers errors. #18

Open
ZoneTwelve opened this issue Feb 11, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@ZoneTwelve
Copy link

When the AI outputs HTML without unquote, it can cause issues with rendering.

For example:

以下是依據您所提供的要求所編寫的使用者對談記錄顯示網頁之HTML、JavaScript及CSS程式碼。請注意,此範例只包含基本結構和功能,若您需要更複雜的設計或額外的功能,可再行修改。

HTML(index.html):
<!DOCTYPE html>
<html lang="en">
<head>
    <meta

Afterwards, the interface displays an error page.

I only modified GetAiChat.tsx to bridge the local LLM API.

Uncaught runtime errors:

ERROR

Failed to execute 'createElement' on 'Document': The tag name provided ('head<div') is not a valid name.
    at createElement (https://development.zonetwelve.io/static/js/bundle.js:40301:38)
    at createInstance (https://development.zonetwelve.io/static/js/bundle.js:41290:24)
    at completeWork (https://development.zonetwelve.io/static/js/bundle.js:50905:32)
    at completeUnitOfWork (https://development.zonetwelve.io/static/js/bundle.js:54664:20)
    at performUnitOfWork (https://development.zonetwelve.io/static/js/bundle.js:54640:9)
    at workLoopSync (https://development.zonetwelve.io/static/js/bundle.js:54554:9)
    at renderRootSync (https://development.zonetwelve.io/static/js/bundle.js:54527:11)
    at recoverFromConcurrentError (https://development.zonetwelve.io/static/js/bundle.js:54019:24)
    at performConcurrentWorkOnRoot (https://development.zonetwelve.io/static/js/bundle.js:53932:26)
    at workLoop (https://development.zonetwelve.io/static/js/bundle.js:71275:38)

If you need the entire output, here's the link: https://gist.github.com/ZoneTwelve/42714f7bdf171b920b742890fadc8ffa.

@bclswl0827 bclswl0827 added the bug Something isn't working label Feb 11, 2024
@bclswl0827
Copy link
Owner

Can you provide a screenshot showing the error, and your prompts?

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

No branches or pull requests

2 participants