Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 405 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 405 Bytes

OpenAI Node SDK Example

This example points the official OpenAI Node SDK at StackIntercept.

Setup

npm install openai
OPENAI_API_KEY="sk-your-key" node app.mjs

Run StackIntercept separately:

docker compose -f docker-compose.trial.yml up --build

Expected behavior:

  • First identical request: x-stack-intercept: miss
  • Second identical request: x-stack-intercept: hit