Commit Graph

11 Commits

Author SHA1 Message Date
Leon van Zyl
61e98f23cf refactor/ migrate from OpenAI to OpenRouter integration
Major improvements to AI integration and developer experience:

## OpenRouter Migration
- Replaced @ai-sdk/openai with @openrouter/ai-sdk-provider
- Updated chat API route to use OpenRouter for access to 100+ AI models
- Changed environment variables from OPENAI_* to OPENROUTER_*
- Updated default model from gpt-5-mini to openai/gpt-5-mini
- Benefits: Users can now access multiple AI providers (OpenAI, Anthropic, etc.) through a single unified API

## Documentation Overhaul
- Expanded CLAUDE.md from 3 lines to comprehensive 225-line guide
- Added complete project structure, tech stack overview, and AI integration guidelines
- Documented all environment variables, scripts, and common tasks
- Added critical rules for AI assistants working with the codebase
- Enhanced checkpoint command with detailed step-by-step instructions

## README Updates
- Updated feature list to highlight OpenRouter integration
- Revised setup instructions for OpenRouter API key acquisition
- Updated environment variable examples and deployment configuration
- Changed all OpenAI references to OpenRouter throughout documentation

## Create Command Updates
- Bumped create-agentic-app version from 1.0.0 to 1.0.1
- Synchronized all template files with main project documentation
- Updated template env.example and package.json with OpenRouter configuration

## Dependency Updates
- Added @openrouter/ai-sdk-provider@^1.2.0
- Updated @ai-sdk/openai from ^2.0.53 to ^2.0.60
- Updated @ai-sdk/react from ^2.0.78 to ^2.0.86
- Updated ai from ^5.0.78 to ^5.0.86
- Updated better-auth from ^1.3.29 to ^1.3.34
- Updated drizzle-kit from ^0.31.5 to ^0.31.6
- Updated eslint from ^9.38.0 to ^9.39.0
- Various type definition updates

Breaking Changes:
- Projects must update environment variables from OPENAI_* to OPENROUTER_*
- API keys must be obtained from openrouter.ai instead of platform.openai.com
- Model names now follow OpenRouter format (e.g., "openai/gpt-5-mini")

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 14:49:40 +02:00
Leon van Zyl
343b67e36a docs/ polar payment processing 2025-10-25 08:03:31 +02:00
Leon van Zyl
31dc1e0639 fix/ postgres env name 2025-10-24 12:20:27 +02:00
Leon van Zyl
45eb5d3413 Add example redurect URI to env file 2025-10-11 08:50:31 +02:00
Leon van Zyl
f71cccf745 db/ add docker compose 2025-09-03 08:20:43 +02:00
Leon van Zyl
9f09578503 env/ add embedding model 2025-08-14 11:48:44 +02:00
Leon van Zyl
b9adc95577 env / add file storage 2025-08-13 17:01:07 +02:00
Leon van Zyl
955a14dfe5 db/ fix DB env var name 2025-08-13 15:28:44 +02:00
Leon van Zyl
6d376f84dc AI env vars 2025-08-13 15:03:27 +02:00
Leon van Zyl
fd08466c8c fix env file 2025-08-13 13:20:42 +02:00
Leon van Zyl
616ebb8fcc use shadcn avatar component 2025-08-13 09:41:10 +02:00