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

[computer use] replace spaces in api_key when starting loop #90

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

Conversation

bmacer
Copy link
Contributor

@bmacer bmacer commented Oct 23, 2024

this addresses #85.

it would seem that if multiple users have already encountered this, maybe the propensity to copy-paste with a trailing space is common enough to address.

maybe not the most graceful solution, just replaces all spaces when the sampling_loop begins.

prior to the fix, here's the error when i use an API key with a trailing space:

image

after the fix, no problem, even with a trailing space:

image

@bmacer bmacer requested a review from x5a October 25, 2024 14:53
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