Generations don’t look like the demos
Make sure that you are installing the CSS library and the correct fonts.page.tsx
globals.css
Empty Agent Response

1
Check the streamed response format
Check your network tab to ensure that the response streamed by your API follows the expected format. The C1 component expects an XML-formatted response with
the primary content wrapped in a The
Make sure that the The
If you’re using a custom
<content>
tag. Here’s an example of the expected format:The transformStream
function call
Make sure that the transformStream
function call on your backend (if you’re streaming the response) returns the correct part of the chunk:The processMessage
function
If you’re using a custom threadManager
created using a useThreadManager
hook, make sure that the processMessage
function is returning the correct
object. The processMessage
function should directly return the response from your backend, which has already transformed the stream into the correct format:2
Check model and dependency compatibility
Ensure that the LLM model you’re using on the backend, the GenUI SDK version, and the Crayon packages are compatible with each other. Refer to the
Compatibility Matrix for more information.
System prompt not being followed
If your model is not following the system prompt, there are a few things you can try:- Try rephrasing the prompt: Try to rephrase the prompt in a different way, and emphasize the instructions that the model was previously not following.
- Try meta prompting: Meta prompting is a technique where you use an LLM to generate or refine a prompt to be fed into another LLM. This can help improve accuracy in many cases.
- Try using a different model: Try using another stable model from this list.
Still having issues?
Shoot us a message on Discord
Feel free to send a message in the #help channel on Discord and someone from our team will get back to you.