553789a59f
- Call ctx.modelRegistry.getApiKeyAndHeaders(model) to resolve auth - Pass resolved apiKey and headers to complete() options - Provides clear error message if auth fails ( directs user to /login ) - Update test mock to include ok: true on auth response - No external fetch() — Pi handles all transport and auth