An example used by Archestra's guide on how to integrate with Vercel AI / AI SDK: https://archestra.ai/docs/platform-vercel-ai-example.
It demonstrates how to use AI SDK in an Express.js server to generate and stream text and objects and connect Archestra as a security layer.
-
Start the Archestra Platform:
docker pull archestra/platform:latest; docker run -p 9000:9000 -p 3000:3000 \ -v archestra-postgres-data:/var/lib/postgresql/data \ -v archestra-app-data:/app/data \ archestra/platform;
-
Create .env file with the following content:
OPENAI_API_KEY="YOUR_OPENAI_API_KEY" -
Run the following commands from this directory:
npm install
-
Run the following command:
npm run dev
-
Chat with assistant through CLI and check that Archestra Platform handles the requests at http://localhost:3000