diff --git a/package.json b/package.json index 781b8b6..cfcedbf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "llm-proxy", - "version": "1.4.4", + "version": "1.4.5", "description": "Manages Nginx for reverse proxy to multiple LLMs, with TLS & Bearer Auth tokens", "main": "dist/index.js", "scripts": { diff --git a/src/controllers/llm.ts b/src/controllers/llm.ts index 28c5b76..36d3c66 100644 --- a/src/controllers/llm.ts +++ b/src/controllers/llm.ts @@ -118,7 +118,9 @@ export class LLMController { } catch (error) { log(`Error forwarding request: ${(error as any).toString()}`, 'error') if (axios.isAxiosError(error) && error.response) { - res.status(error.response.status).json(error.response.data) + log(`Error response from ${fullUrl}:`, 'error', error.response.data) + log(`Request body was:`, 'error', req.body) + res.status(error.response.status).send(error.response.data) } else { res.status(500).json({ error: 'Internal Server Error' }) }