Integrate Puter AI for Theme Generation and Metadata#16
Conversation
- Add Puter AI configuration to config/services.php and .env.example - Refactor AiService.php to use Puter's OpenAI-compatible REST API - Update AiThemeGenerator.tsx to use @heyputer/puter.js library directly - Ensure model name is configurable via PUTER_MODEL and VITE_PUTER_MODEL - Update feature tests to mock Puter AI endpoints instead of OpenRouter - Install missing cmdk dependency for frontend build Co-authored-by: claudemyburgh <6057076+claudemyburgh@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR replaces the existing OpenRouter AI integration with Puter AI.
Key changes:
App\Services\AiServicenow points tohttps://api.puter.com/puterai/openai/v1/chat/completions. It uses thePUTER_AUTH_TOKENfor authentication.AiThemeGeneratorcomponent now uses the@heyputer/puter.jslibrary directly (puter.ai.chat), enabling a "User-Pays" model where users can use their own Puter credits.PUTER_AUTH_TOKEN,PUTER_MODEL, andVITE_PUTER_MODELto environment variables.AiDescriptionTestandThemesControllerTestto fake the Puter API endpoints.cmdktopackage.jsonto resolve build errors in the registry components.The build artifacts and logs generated during development have been excluded from this submission to maintain a clean diff.
PR created automatically by Jules for task 15141914466800440140 started by @claudemyburgh