Download the PHP package filaforge/filament-opensource-chat without Composer
On this page you can find all versions of the php package filaforge/filament-opensource-chat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download filaforge/filament-opensource-chat
More information about filaforge/filament-opensource-chat
Files in filaforge/filament-opensource-chat
Package filament-opensource-chat
Short Description Open Source Chat management plugin for FilamentPHP with model profiles, user settings, and conversations CRUD pages.
License MIT
Homepage https://github.com/filaforge/opensource-chat
Informations about the package filament-opensource-chat
Filaforge Opensource Chat
A powerful Filament plugin that integrates various open-source AI chat capabilities directly into your admin panel.
Features
- Multi-Model Support: Chat with various open-source AI models
- Conversation Management: Save, organize, and continue chat conversations
- Model Selection: Choose from available open-source AI models
- Customizable Settings: Configure API endpoints, models, and chat parameters
- Real-time Chat: Live chat experience with streaming responses
- Conversation History: Keep track of all your AI conversations
- Export Conversations: Save and share chat transcripts
- Role-based Access: Configurable user permissions and access control
- Context Awareness: Maintain conversation context across sessions
- Local Deployment: Support for self-hosted AI models
Installation
1. Install via Composer
2. Publish & Migrate
3. Register Plugin
Add the plugin to your Filament panel provider:
Setup
Configuration
The plugin will automatically:
- Publish configuration files to
config/opensource-chat.php
- Publish view files to
resources/views/vendor/opensource-chat/
- Publish migration files to
database/migrations/
- Register necessary routes and middleware
Open Source AI Configuration
Configure your open-source AI endpoints in the published config file:
Environment Variables
Add these to your .env
file:
Getting API Keys
Fireworks AI
- Visit Fireworks AI
- Create an account and navigate to API keys
- Generate a new API key
- Copy the key to your
.env
file
Together AI
- Visit Together AI
- Sign up and go to API keys section
- Create a new API key
- Copy the key to your
.env
file
Local Models
For local deployment, you can use:
- Ollama: Local model serving
- LM Studio: Desktop AI model interface
- Custom endpoints: Your own AI model servers
Usage
Accessing Opensource Chat
- Navigate to your Filament admin panel
- Look for the "Opensource Chat" menu item
- Start chatting with open-source AI models
Starting a Conversation
- Select Provider: Choose from available AI providers
- Select Model: Choose the specific AI model to use
- Type Your Message: Enter your question or prompt
- Send Message: Submit your message to the AI
- View Response: See the AI's response in real-time
- Continue Chat: Keep the conversation going
Managing Conversations
- New Chat: Start a fresh conversation
- Save Chat: Automatically save important conversations
- Load Chat: Resume previous conversations
- Export Chat: Download conversation transcripts
- Delete Chat: Remove unwanted conversations
Advanced Features
- Provider Switching: Switch between different AI providers
- Model Selection: Choose from available models per provider
- Parameter Tuning: Adjust temperature, max tokens, and other settings
- Context Management: Maintain conversation context across sessions
- Streaming Responses: Real-time AI responses for better user experience
Troubleshooting
Common Issues
- API key errors: Verify your API keys are correct and have sufficient credits
- Connection failures: Check if the AI service endpoints are accessible
- Model not available: Ensure the selected model is available in your plan
- Rate limiting: Check your API rate limits and usage
Debug Steps
-
Check the plugin configuration:
-
Verify routes are registered:
-
Test API connectivity:
-
Check environment variables:
-
Clear caches:
- Check logs for errors:
Provider-Specific Issues
Local Models
- Service not running: Ensure your local AI service is started
- Port conflicts: Check if the required ports are available
- Model not loaded: Verify the model is properly loaded in your service
Fireworks AI
- Authentication errors: Check API key and permissions
- Model availability: Ensure the model is available in your plan
- Rate limits: Monitor your API usage and limits
Together AI
- API key issues: Verify your Together AI API key
- Model access: Check if you have access to the selected model
- Service status: Check Together AI service status
Security Considerations
Access Control
- Role-based permissions: Restrict access to authorized users only
- API key security: Never expose API keys in client-side code
- User isolation: Ensure users can only access their own conversations
- Audit logging: Track all chat activities and API usage
Best Practices
- Use environment variables for API keys
- Implement proper user authentication
- Monitor API usage and costs
- Regularly rotate API keys
- Set appropriate rate limits
- Use HTTPS for external API calls
Performance Optimization
Local Deployment
- Resource allocation: Ensure sufficient RAM and CPU for models
- Model optimization: Use quantized models for better performance
- Caching: Implement response caching for common queries
- Load balancing: Use multiple model instances if needed
External APIs
- Connection pooling: Reuse HTTP connections when possible
- Request batching: Batch multiple requests when feasible
- Response caching: Cache responses to reduce API calls
- Fallback strategies: Implement fallback to local models
Uninstall
1. Remove Plugin Registration
Remove the plugin from your panel provider:
2. Roll Back Migrations (Optional)
3. Remove Published Assets (Optional)
4. Remove Package and Clear Caches
5. Clean Up Environment Variables
Remove these from your .env
file:
Support
- Documentation: GitHub Repository
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Contributing
We welcome contributions! Please see our Contributing Guide for details.
License
This plugin is open-sourced software licensed under the MIT license.
Made with ❤️ by the Filaforge Team
All versions of filament-opensource-chat with dependencies
filament/filament Version ^3.2|^4.0
illuminate/support Version ^10.0|^11.0|^12.0
spatie/laravel-package-tools Version ^1.16