Also please check if OpenAI works without bolt, just with a curl request:
curl https://api.openai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_OPENAI_API_KEY" \
-d '{
"model": "gpt-4o",
"max_tokens": 8192,
"temperature": 0,
"messages": [
{
"role": "user",
"content": "Your prompt here"
}
]
}'
Put in your api key.