Log errors returned by ai-gateway in code_suggestions/direct_access endpoint

When we get an explicit error back from ai-gateway, that error does not get logged anywhere, yet we respond with a 503. This makes it difficult to diagnose why errors are happening.

This ticket was created from INC-1543 and was automatically exported by incident.io 🔥

Edited Jun 26, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading