ChatGPT Goes Open Source, Accessible via Assistants API in 2024
Assistants API: The Bridge Connecting ChatGPT
On May 2, OpenAI shared the news on social media. They released a new project that is open-source. This project helps people make AI apps faster and easier. It uses the Assistants API and Next.js.
The project has an example code. This makes it easy to build a chat interface with streaming. It also shows how to use tools like:
Function calls
Code interpreters
New ways to search for files
Quick Start Setup
1. Clone repo
git clone https://github.com/openai/openai-assistants-quickstart.git
cd openai-assistants-quickstart
2. Set your OpenAI API key
export OPENAI_API_KEY="sk_..."
(or in .env.example
and rename it to .env
).
3. Install dependencies
npm install
4. Run
npm run dev