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

Broken UI #295

Open
castorinop opened this issue Jan 6, 2025 · 1 comment
Open

Broken UI #295

castorinop opened this issue Jan 6, 2025 · 1 comment

Comments

@castorinop
Copy link

when llm response html the ui broken

using agent-zero 0.8 docker + ollama + llama3.1

agent-1  | Agent 0: Generating
agent-1  | It seems like I made a mistake again by not following the system prompt instructions on JSON message formatting precisely.
agent-1  | 
agent-1  | Let me try again with a properly formatted JSON message:
agent-1  | 
agent-1  | ```json
agent-1  | {
agent-1  |     "tool_name": "code_execution_tool",
agent-1  |     "tool_args": {
agent-1  |         "runtime": "terminal",
agent-1  |         "code": "curl -X GET 'https://example.com'"
agent-1  |     }
agent-1  | }
agent-1  | ```
agent-1  | 
agent-1  | This should be in the correct format for the system to understand and process.
agent-1  | 
agent-1  | Agent 0: Using tool 'code_execution_tool'
agent-1  | Runtime: terminal
agent-1  | 
agent-1  | Code: curl -X GET 'https://example.com'
agent-1  | 
agent-1  | Agent 0 code execution output
<!doctype html>
agent-1  | <html>
agent-1  | <head>
agent-1  |     <title>Example Domain</title>
agent-1  | 
agent-1  |     <meta charset="utf-8" />
agent-1  |     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
agent-1  |     <meta name="viewport" content="width=device-width, initial-scale=1" />
agent-1  |     <style type="text/css">
agent-1  |     body {
agent-1  |         background-color: #f0f0f2;
agent-1  |         margin: 0;
agent-1  |         padding: 0;
agent-1  |         font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
agent-1  |         
agent-1  |     }
agent-1  |     div {
agent-1  |         width: 600px;
agent-1  |         margin: 5em auto;
agent-1  |         padding: 2em;
agent-1  |         background-color: #fdfdff;
agent-1  |         border-radius: 0.5em;
agent-1  |         box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);
agent-1  |     }
agent-1  |     a:link, a:visited {
agent-1  |         color: #38488f;
agent-1  |         text-decoration: none;
agent-1  |     }
agent-1  |     @media (max-width: 700px) {
agent-1  |         div {
agent-1  |             margin: 0 auto;
agent-1  |             width: auto;
agent-1  |         }
agent-1  |     }
agent-1  |     </style>
agent-1  | </head>
agent-1  | 
agent-1  | <body>
agent-1  | <div>
agent-1  |     <h1>Example Domain</h1>
agent-1  |     <p>This domain is for use in illustrative examples in documents. You may use this
agent-1  |     domain in literature without prior coordination or asking for permission.</p>
agent-1  |     <p><a href="https://www.iana.org/domains/example">More information...</a></p>
agent-1  | </div>
agent-1  | </body>
agent-1  | </html>
agent-1  |

imagen

@BirenMer
Copy link

BirenMer commented Jan 7, 2025

image
Providing another image it if helps
Please note the UI for chat #3 is completely fine
Mean while even If I do a hard refresh in chat #4 the UI remains as it is i.e. broken

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

2 participants