diff --git a/packages/server/src/server.ts b/packages/server/src/server.ts index 7a267528987cb3522c25871552e381a1d99018fc..487aad9e23b2a2aebd2f7e3fd27eb99a9da9392c 100644 --- a/packages/server/src/server.ts +++ b/packages/server/src/server.ts @@ -14,7 +14,7 @@ export class LlamaIndexServer { workflow: ServerWorkflow; port: number; - constructor({ workflow, port = 8000 }: LlamaIndexServerParams) { + constructor({ workflow, port = 3000 }: LlamaIndexServerParams) { this.app = express(); this.workflow = workflow; this.port = port; @@ -41,7 +41,7 @@ export class LlamaIndexServer { protected setupRoutes() { this.app.use(express.json()); - this.app.post("/chat", this.chatController); + this.app.post("/api/chat", this.chatController); } public start() {