Skip to content

Integrate Puter AI for Theme Generation and Metadata#16

Merged
claudemyburgh merged 1 commit into
mainfrom
puter-ai-integration-15141914466800440140
May 17, 2026
Merged

Integrate Puter AI for Theme Generation and Metadata#16
claudemyburgh merged 1 commit into
mainfrom
puter-ai-integration-15141914466800440140

Conversation

@claudemyburgh
Copy link
Copy Markdown
Member

This PR replaces the existing OpenRouter AI integration with Puter AI.

Key changes:

  • Backend: App\Services\AiService now points to https://api.puter.com/puterai/openai/v1/chat/completions. It uses the PUTER_AUTH_TOKEN for authentication.
  • Frontend: The AiThemeGenerator component now uses the @heyputer/puter.js library directly (puter.ai.chat), enabling a "User-Pays" model where users can use their own Puter credits.
  • Configuration: Added PUTER_AUTH_TOKEN, PUTER_MODEL, and VITE_PUTER_MODEL to environment variables.
  • Testing: Updated AiDescriptionTest and ThemesControllerTest to fake the Puter API endpoints.
  • Dependencies: Added cmdk to package.json to 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

- 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>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@claudemyburgh claudemyburgh merged commit 25e073e into main May 17, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant