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

Fixed empty message error for computer use #1521

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ehlowe
Copy link

@ehlowe ehlowe commented Nov 1, 2024

Describe the changes you have made:

if the user presses enter without input it will continue and ask again instead of inserting an empty string into the prompt which throws an error

Fixes #1517

Pre-Submission Checklist (optional but appreciated):

  • I have included relevant documentation updates (stored in /docs)
  • I have read docs/CONTRIBUTING.md
  • I have read docs/ROADMAP.md

OS Tests (optional but appreciated):

  • Tested on Windows
  • Tested on MacOS
  • Tested on Linux

@@ -487,6 +487,8 @@ async def tool_output_callback(result: ToolResult, tool_id: str):

print_markdown("\nWe'll email you shortly. ✓\n---\n")
continue
elif user_input=="":
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks @ehlowe

Can you please include a check for whitespace. A space character leads to the same error

Copy link
Author

Choose a reason for hiding this comment

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

Yes, just fixed it

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.

Invalid Request | empty message error
3 participants