EdgarGPT is a Discord bot powered by OpenAI's latest GPT-5 model and Responses API. Built for medical students and professionals, it provides AI-powered assistance in French with advanced document processing, image analysis, and web search capabilities.
- Dual AI Modes: Edgar (GPT-5) and Edgar++ (GPT-5 with reasoning)
- Voice Transcription: Processes Discord voice messages with Whisper
- Image Analysis: Medical image interpretation without restrictions
- Image Generation & Editing: Create and modify images with GPT-Image-1
- Document Processing: Direct file analysis through Responses API (PDF, TXT, CSV, Excel)
- Web Search: Real-time information retrieval when needed
- Medical Focus: Optimized for medical education in French
- Smart Context: Maintains conversation history for coherent discussions
/model— Switch between Edgar and Edgar++ modes/image— Generate images from text descriptions/image-edit— Modify uploaded images with text prompts
- Node.js >= 18.0.0
- OpenAI API key
- Discord bot token
git clone https://github.com/Decryptu/EdgarGPT.git
cd EdgarGPT
npm installCreate .env file:
API_KEY=your_openai_api_key
TOKEN=your_discord_bot_token
CLIENT_ID=your_discord_app_client_idCopy and configure the example files:
cp config.example.ts config.ts
cp channels.example.ts channels.tsEdit channels.ts to add your allowed channel IDs.
Development: npm run dev
Production:
npm run build
npm startGenerate an image:
/image description: "anatomical diagram of the human heart"Switch to reasoning mode:
/model model: Edgar++- TypeScript - Type-safe development
- Discord.js v14 - Discord API integration
- OpenAI Responses API - Unified AI interface
ISC License
Built by Decrypt