Create a LlamaIndex.TS project.
Download previous show descriptions.
curl "https://ajc.pics/nickyt.pdf" > nickyt.pdf
Set OpenAI API key to an environment variable.
export OPENAI_API_KEY="YOUR_API_KEY"
Generate project with the following options.
npx create-llama@latest nickyt \
--template streaming \
--framework nextjs \
--observability none \
--open-ai-key $OPENAI_API_KEY \
--model gpt-4-turbo-preview \
--files $HOME/nickyt.pdf \
--use-llama-parse false \
--vector-db none \
--tools none \
--post-install-action dependencies
cd nickyt
npm run generate
npm run dev
git init
git add .
git commit -m "init"
gh repo create nickyt \
--public \
--push \
--source=. \
--description="Nickyt stream." \
--remote=upstream
vercel --env OPENAI_API_KEY=$OPENAI_API_KEY --prod --yes
netlify init
netlify env:import .env.local