Выведите тело ответа целиком
Не только message. В логах должны быть HTTP-код, type, code и param: без них половина ошибок выглядит одинаково.
from openai import OpenAI, APIStatusError
client = OpenAI()
try:
r = client.chat.completions.create(model="gpt-5-6", messages=[{"role": "user", "content": "ping"}])
except APIStatusError as e:
print(e.status_code, e.body) # {"error": {"message", "type", "code", "param"}}