mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-20 03:02:58 +02:00
Set the parser limit for the gateway because AI messages can be pretty big
This commit is contained in:
@@ -21,7 +21,9 @@ export function createAiGatewayServer() {
|
|||||||
|
|
||||||
aiGatewayServer.use(helmet());
|
aiGatewayServer.use(helmet());
|
||||||
aiGatewayServer.use(cors());
|
aiGatewayServer.use(cors());
|
||||||
aiGatewayServer.use(express.json());
|
// AI requests can carry large payloads (long conversation history, tool
|
||||||
|
// results, embedded documents), well beyond express.json()'s 100kb default.
|
||||||
|
aiGatewayServer.use(express.json({ limit: "50mb" }));
|
||||||
|
|
||||||
aiGatewayServer.use(createAiGatewayRouter());
|
aiGatewayServer.use(createAiGatewayRouter());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user