An interactive command-line AI assistant that combines OpenAI's o3-mini model with web search capabilities to provide informed responses with citations.
- Interactive command-line interface
- Real-time streaming of AI responses
- Web search integration
- Response formatting with citations
- Tool-based architecture for extensibility
- Node.js (v16 or higher)
- npm or yarn
- OpenAI API key (Get it from OpenAI Platform)
- Tavily API key (Get it from Tavily AI)
- Clone the repository:
git clone https://github.com/zaidmukaddam/o3-mini-search.git
cd o3-mini-search
- Install dependencies:
npm install
- Create a
.env
file in the root directory with the following variables:
OPENAI_API_KEY=your_openai_api_key_here
TAVILY_API_KEY=your_tavily_api_key_here
- Build the TypeScript project:
npm run build
Start the application:
npm start
The assistant will prompt you for input. Type your questions or queries, and the assistant will:
- Perform relevant web searches
- Process the information
- Provide a response with citations
src/index.ts
- Main application entry pointsrc/tools/
- Custom tools implementation (e.g., web search).env
- Environment variables configurationtsconfig.json
- TypeScript configurationpackage.json
- Project dependencies and scripts
@ai-sdk/openai
- OpenAI API integrationai
- AI utilities and typesdotenv
- Environment variables management- Other dependencies as specified in package.json
This project is licensed under the MIT License - see the LICENSE file for details.