Hello There, thank you very much!
I face a similar issue with Curl in windows 10 as I cannot use my environment variable in the H param. Can anyone help out?
curl https://api.openai.com/v1/models -H “Authorization: Bearer $OPENAI_API_KEY”
{
“error”: {
“message”: “Incorrect API key provided: $OPENAI_***_KEY. You can find your API key at OpenAI API”,
“type”: “invalid_request_error”,
“param”: null,
“code”: “invalid_api_key”
}
}
Many thanks for your help!
Best,
Jan