Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

cairo-book/cairo-chatbot

Repository files navigation

Cairo chatbot

This is a chatbot to help you learn and code with the Cairo language.

Archived in favor of the Starknet Agent

What's inside?

This Turborepo includes the following packages/apps:

Apps and Packages

  • chatbot: a Next.js app. The application is highly inspired by the vercel ai chatbot template (https://github.com/supabase-community/vercel-ai-chatbot).
  • @repo/ai: a package for the AI use cases
  • @repo/eslint-config: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • @repo/typescript-config: tsconfig.jsons used throughout the monorepo

Build

To build all apps and packages, run the following command:

pnpm build

Develop

You will need OPENAI_API_KEY and MONGODB_ATLAS_URI environment set properly.

export OPENAI_API_KEY="sk-<...>"
export MONGODB_ATLAS_URI="mongodb+srv:<...>"

Add a .env.local file at the root of the repo with the following content (replace the values with your own):

QUESTION_MODEL_NAME="gpt-3.5-turbo"
ANSWER_MODEL_NAME="gpt-4-turbo-preview"

To develop all apps and packages, run the following command:

pnpm dev