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

Windows - Not able to enter credentials when prompted for it on certain Windows VM. #632

Open
sangee2004 opened this issue Jul 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sangee2004
Copy link
Contributor

gptscript version - v0.9.2+0f32a9d8

Setup - Windows VM on Azure- Windows 11 Pro ( 8GB RAM , 2 vCPUs, Standard D2s v3)

Steps to reproduce the problem:

  1. Do not have OPENAI_API_KEY env variable set (you should also not have sys.openai credential created )
  2. Try to run any gptscript
  3. When promoted for the credentials, try to enter the creds (typing / copying the keys) .
  4. Notice that this does not result in any input being accepted (I dont see any "*" being printed when i entering the creds).
  5. Clicking enter after this results in an empty OPENAI_API_KEY cred to be created.
 gptscript .\testbrowser.gpt
19:05:58 started  [main]
? Please provide your OpenAI API key:
19:06:08 Saved API key as credential sys.openai
2024/07/15 19:06:08 error, status code: 401, message: You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY). You can obtain an API key from https://platform.openai.com/account/api-keys.
PS C:\Users\sangeetha\gptscript> gptscript credentials show sys.openai
ENV              VALUE
OPENAI_API_KEY

Note - I have seen this problem not happen sometimes when I open a new powershell window and test the same set of steps in it.
Also I have seen instances when actually typing the credentials gets accepted as input but copying the creds does not work.

@sangee2004 sangee2004 added the bug Something isn't working label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant