- Check that you have node > 22 installed
- Run
corepack enable
if you haven't done so yet - VSCode is recommended along recommended extensions
git clone [email protected]:pAIrprogio/ts-ai-playground.git
cd ts-ai-playground
yarn install
touch .env
code .
- Make sure to add the following keys to the
.env
file:ANTHROPIC_API_KEY
OPENAI_API_KEY
GOOGLE_GENERATIVE_AI_API_KEY
- Install the recommended extensions in VSCode
- The VSCode debugger is pre-configured to run the active file
- Local data is stored in the
.data
directory - Local output is stored in the
.output
directory - Access them easily with exports from the
src/dirs.runtime.ts
module
- ai: Vercel AI SDK
- @ai-sdk/*: Vercel AI SDK Providers
- evalite: Evals as unit tests
- @synstack/*: LLM scripting utilities
- ts-pattern: TypeScript pattern matching
- zod: TypeScript schema declaration and validation
- wretch: Immutable HTTP client