Demo chatgpt app
Small repo to play with the ChatGPT API. The bot can play tic-tac-toe, but never wins.
Start local development
IMPORTANT: Get your own chatgpt API key and create a secrets directory with an index file innside the server:
// @ server/secrets/index.ts
export const secrets = {
openai: {
org: "org-id-here",
key: "gpt-api-key-here",
},
}
From the root of the project, this command starts all dev servers in parallel:
$ yarn dev
Development setup is fully functional when the terminal displays:
🟢 Server: http://localhost:4000/
The web client can be opened at:
➜ Local: http://127.0.0.1:5173/