Skip to content

Conversation

@vijaythecoder
Copy link
Contributor

No description provided.

- Install prism-php/prism package for unified AI provider interface
- Remove all custom integration files (app/Integrations/)
- Create PrismAdapter service to interface with PrismPHP
- Create simplified PrismTools for tool management
- Update ChatAssistant to use Prism instead of custom integrations
- Add support for all Prism providers: OpenAI, Claude, Ollama, OpenRouter, DeepSeek, Gemini, Groq, Mistral, xAI
- Replace config/aiproviders.php with config/prism.php
- Update environment variables to match Prism naming conventions
- Implement ListFiles tool in Prism format
- Simplify tool execution (handled internally by Prism)
- Update CLAUDE.md documentation to reflect new architecture

Benefits:
- Reduced codebase complexity (removed ~11 integration files)
- Unified interface for all AI providers
- Better maintenance through open-source library
- More providers available out of the box
- Converted ReadFile, CreateFile, UpdateFile, and ExecuteCommand tools
- All tools now use PrismPHP's fluent API with Tool::as() syntax
- Maintained original functionality and error handling
- Updated getAllTools() to return all 5 converted tools
- Tools use snake_case naming convention (e.g., read_file, create_file)
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.

2 participants