File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " llm-proxy" ,
3
- "version" : " 1.4.5 " ,
3
+ "version" : " 1.4.6 " ,
4
4
"description" : " Manages Nginx for reverse proxy to multiple LLMs, with TLS & Bearer Auth tokens" ,
5
5
"main" : " dist/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -118,9 +118,9 @@ export class LLMController {
118
118
} catch ( error ) {
119
119
log ( `Error forwarding request: ${ ( error as any ) . toString ( ) } ` , 'error' )
120
120
if ( axios . isAxiosError ( error ) && error . response ) {
121
- log ( `Error response from ${ fullUrl } :` , 'error' , error . response . data )
122
- log ( `Request body was :` , 'error' , req . body )
123
- res . status ( error . response . status ) . send ( error . response . data )
121
+ // log(`Error response from ${fullUrl}:`, 'error', error.response.data)
122
+ log ( `Request body caused error :` , 'error' , req . body )
123
+ res . status ( error . response . status ) . json ( { error : 'Error processing request' } )
124
124
} else {
125
125
res . status ( 500 ) . json ( { error : 'Internal Server Error' } )
126
126
}
You can’t perform that action at this time.
0 commit comments