Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Archestra + Express.js + AI SDK Example

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.

Usage

  1. 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;
  2. Create .env file with the following content:

    OPENAI_API_KEY="YOUR_OPENAI_API_KEY"
  3. Run the following commands from this directory:

    npm install
  4. Run the following command:

    npm run dev
  5. Chat with assistant through CLI and check that Archestra Platform handles the requests at http://localhost:3000