File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " llm-proxy" ,
3
- "version" : " 1.4.2 " ,
3
+ "version" : " 1.4.3 " ,
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 @@ -14,10 +14,10 @@ const port = process.env.PORT || 8080
14
14
const targetUrls = ( process . env . TARGET_URLS || 'http://example.com' ) . split ( ',' ) . map ( ( url ) => url . trim ( ) )
15
15
16
16
// app.use(express.json())
17
- app . use ( bodyParser . json ( ) )
18
17
const payloadLimit = process . env . PAYLOAD_LIMIT || '1mb'
19
18
app . use ( bodyParser . json ( { limit : payloadLimit } ) )
20
19
app . use ( bodyParser . urlencoded ( { extended : false , limit : payloadLimit } ) )
20
+ app . use ( bodyParser . json ( ) )
21
21
log ( 'info' , `Payload limit is: ${ payloadLimit } ` )
22
22
23
23
// Express routes
You can’t perform that action at this time.
0 commit comments