ChatGPT on your system
The OpenAI Assistant API handles agents, conversation history, vector stores, and running tools which traditionnaly requires a lot of boilerplate code to set up.
Our goal with OAI is to provide a simple and intuitive interface to interact with this API.
The current version offers a CLI interface, but more will come in the future.
Just run oai from the command line to interact
OAI currently relies on bun, and it needs to be installed on your system in order to run the project.
A later version may allow using the node runtime, but for now, only bun is supported.
git clone [email protected]:pAIrprogio/gpt-assistant-cli-playground.git
bun installOPENAI_API_KEY=your-key
To install your assistant globally and access it with the oai command, run bun link in the project's folder.
Any change made to the project will be reflected in the global command without any extra build step.
oai or oai chat: starts a chat with an assistantoai a|assistant: manage your assistant
oai a ls|list: list available assistantsoai a add|create|new: create a new assistantoai a rm|remove|delete: remove an assistantoai a e|edit: edit an assistantoai vs|vector-store: manage your vector store
oai vs ls|list: list available vector storesoai vs add|create|new: create a new vector storeoai vs rm|remove|delete: remove a vector storeoai vs e|edit: edit a vector storeoai vs sync: sync managed vector storesVector Stores are used by assistants with file search enabled to dynamically fetch relevant information. OAI helps you manage them custom synchronizations.
Once set up, make sure to run oai vs sync to synchronize your vector store.
Follow the steps in docs/add-new-tool.md
Due to issues in bun-vscode, you need to inspect through an external debugger.
To debug the project, run bun debug in the project's folder.