Closed tstanek390 closed 2 months ago
I export the api key and then I run by terminal the app.py:
export OPENAI_API_KEY=sk- export GRAPHRAG_API_KEY=sk-pr
Can you test a quick curl command to see if API key is correct or is there any networking issue:
curl "https://api.openai.com/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-4o-mini",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Write a haiku that explains the concept of recursion."
}
]
}'
Something happened, probably the new app update, and it is working now. Thanks anyways!:)
Same error here
any updates to this ?
Description
Whenever I put working (checked with other apps) OpenAI API key either to .env or to YAML in the app's interface Im getting the error below. Tried different brackets, quotation marks etc. but Im still unable to use openai api. Thanks for any help
Reproduction steps
Screenshots
Logs
No response
Browsers
No response
OS
MacOS
Additional information
No response