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

Show LLM errors #2019

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Show LLM errors #2019

merged 2 commits into from
Oct 1, 2024

Conversation

dividedmind
Copy link
Collaborator

@dividedmind dividedmind commented Oct 1, 2024

Turns out errors were dropped in the UI RPC layer. It took ages to go through all the layers to figure out where the leak was, but fortunately once found the fix was trivial.

image
(Note this is copilot which has heavy off-topic filters.)

Error messages could use better styling, but I think this is outside of scope and this change should be merged ASAP because even this is better than silence.

(I also added another small commit adjusting the generate prompt; it helps prevent XML fencing (fixes #2012 hopefully) and tells the model to chunk response when required; this doesn't work best yet since @generate only looks at the last message to extract paths, so continuation requests won't have full required file contents, but I feel it's still better than stopping mid-chunk due to response size limits.)

1. Tell the model not to put code changes in fences.
2. Tell it to chunk the response if too long.
@dividedmind dividedmind self-assigned this Oct 1, 2024
@dustinbyrne dustinbyrne merged commit 9d85dc9 into main Oct 1, 2024
23 checks passed
@dustinbyrne dustinbyrne deleted the fix/show-errors branch October 1, 2024 13:13
@appland-release
Copy link
Contributor

🎉 This PR is included in version @appland/components-v4.38.0 🎉

The release is available on:

  • @appland/components-v4.38.0
  • GitHub release
  • @appland/components-v4.38.0

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@generate command emits XML
4 participants