Download the PHP package filaforge/filament-huggingface-chat without Composer
On this page you can find all versions of the php package filaforge/filament-huggingface-chat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download filaforge/filament-huggingface-chat
More information about filaforge/filament-huggingface-chat
Files in filaforge/filament-huggingface-chat
Package filament-huggingface-chat
Short Description Comprehensive Filament panel plugin for chatting with AI models from multiple providers including HuggingFace, Ollama, and DeepSeek. Features conversation management, model profiles, and user-specific settings.
License MIT
Homepage https://github.com/filaforge/huggingface-chat
Informations about the package filament-huggingface-chat
Filaforge HuggingFace Chat
A powerful Filament plugin that integrates HuggingFace AI chat capabilities directly into your admin panel.
Features
- HuggingFace AI Integration: Chat with thousands of AI models from HuggingFace
- Conversation Management: Save, organize, and continue chat conversations
- Model Selection: Choose from a wide variety of AI models
- Customizable Settings: Configure API tokens, 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
- Multi-model Support: Switch between different HuggingFace models
- Context Awareness: Maintain conversation context across sessions
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/hf-chat.php - Publish view files to
resources/views/vendor/hf-chat/ - Publish migration files to
database/migrations/ - Register necessary routes and middleware
HuggingFace API Configuration
Configure your HuggingFace API in the published config file:
Environment Variables
Add these to your .env file:
Getting Your HuggingFace API Token
- Visit HuggingFace
- Create an account or sign in
- Go to your profile settings
- Navigate to "Access Tokens"
- Generate a new token
- Copy the token to your
.envfile
Usage
Accessing HuggingFace Chat
- Navigate to your Filament admin panel
- Look for the "HF Chat" menu item
- Start chatting with AI models
Starting a Conversation
- Select Model: Choose from available HuggingFace models
- Type Your Message: Enter your question or prompt
- Send Message: Submit your message to the AI
- View Response: See the AI's response
- 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
- Model Selection: Switch between different HuggingFace models
- Parameter Tuning: Adjust temperature, max length, and other settings
- Context Management: Maintain conversation context across sessions
- Streaming Responses: Real-time AI responses (when supported)
Troubleshooting
Common Issues
- API token errors: Verify your HuggingFace API token is correct
- Rate limiting: Check your HuggingFace API rate limits and usage
- Model not available: Ensure the selected model is available and loaded
- Connection timeouts: Check network connectivity and timeout settings
Debug Steps
-
Check the plugin configuration:
-
Verify routes are registered:
-
Test API connectivity:
-
Check environment variables:
-
Clear caches:
- Check logs for errors:
API Error Codes
- 401 Unauthorized: Invalid or expired API token
- 429 Too Many Requests: Rate limit exceeded
- 503 Service Unavailable: Model is currently loading or unavailable
- Timeout: Request took too long to complete
Security Considerations
Access Control
- Role-based permissions: Restrict access to authorized users only
- API token security: Never expose API tokens 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 tokens
- Implement proper user authentication
- Monitor API usage and costs
- Regularly rotate API tokens
- Set appropriate rate limits
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-huggingface-chat with dependencies
filament/filament Version ^4.0
illuminate/support Version ^12.0
spatie/laravel-package-tools Version ^1.16
guzzlehttp/guzzle Version ^7.8