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

Folding code execution effect message block #28

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

EntropyYue
Copy link
Contributor

image
image


await emitter.message(
f"\n<details>\n<summary>Code Execution</summary>\nI executed the following {language} code:\n```{language}\n{code}\n```\n```Output\n{output}\n```\n</details>\n"
)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this message should only be emitted if the code execution was successful. As currently written, the message is emitted in all cases, including the error cases. Please either move this to the success-case branch (line 254), or leave this here but check if status == "OK".

Copy link
Contributor Author

@EntropyYue EntropyYue Oct 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I have completed the revision, but it seems better to return this content at any time, or should we use another collapsible message block to display the error?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error is already displayed in the "status" part of the chat message, not sure there's any value in adding it as a real part of the message.

@EtiennePerot
Copy link
Owner

Please re-run python3 build/build_openwebui.py --mode=build.

@EntropyYue
Copy link
Contributor Author

completed

@EtiennePerot EtiennePerot merged commit fae5797 into EtiennePerot:master Oct 8, 2024
2 checks passed
@EtiennePerot
Copy link
Owner

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants