Skip to content

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

Open
@sangee2004

Description

@sangee2004

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions