You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setup - Windows VM on Azure- Windows 11 Pro ( 8GB RAM , 2 vCPUs, Standard D2s v3)
Steps to reproduce the problem:
Do not have OPENAI_API_KEY env variable set (you should also not have sys.openai credential created )
Try to run any gptscript
When promoted for the credentials, try to enter the creds (typing / copying the keys) .
Notice that this does not result in any input being accepted (I dont see any "*" being printed when i entering the creds).
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.
The text was updated successfully, but these errors were encountered:
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:
OPENAI_API_KEY
env variable set (you should also not havesys.openai
credential created )OPENAI_API_KEY
cred to be created.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.
The text was updated successfully, but these errors were encountered: