leot / flarum-ai-support-widget
AI-powered support widget for Flarum
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:flarum-extension
Requires
- flarum/core: ^1.8.0
- guzzlehttp/guzzle: ^7.0
README
The AI Support Widget provides intelligent AI assistant functionality for Flarum forums, helping users quickly get information and support.
AI支持小部件为Flarum论坛提供了智能AI助手功能,可以帮助用户快速获取信息和支持。
Features
- Floating AI chat button
- Support for multiple AI providers (DeepSeek, OpenAI)
- Automatic search of forum content for references
- Intelligent answers to user questions
- Multilingual support
- User permission control
- Daily usage limits
功能特点
- 悬浮式AI聊天按钮
- 支持多种AI提供商(DeepSeek, OpenAI)
- 自动搜索论坛内容作为参考
- 智能回答用户问题
- 支持多语言
- 用户使用权限控制
- 每日使用次数限制
Installation
Install this extension with Composer:
composer require leot/flarum-ai-support-widget:"*"
安装
使用Composer安装此扩展:
composer require leot/flarum-ai-support-widget:"*"
Configuration
- Enable the extension in the Flarum admin panel
- Configure the following options in the settings:
- AI provider (DeepSeek or OpenAI)
- API key
- Model name
- Maximum tokens
- Request timeout
- Usage limit settings
配置
- 在Flarum管理面板中启用扩展
- 在设置中配置以下选项:
- AI服务商(DeepSeek或OpenAI)
- API密钥
- 模型名称
- 最大令牌数
- 请求超时时间
- 使用限制设置
Troubleshooting
If you encounter issues:
- Toolbar or UI elements abnormal: Make sure you are using the latest version that has fixed UI conflict issues
- Unable to load AI chat box: Check the browser console for JavaScript errors
- API request failure: Verify that your API key and network connection are working properly
故障排除
如果遇到问题:
- 工具栏或UI元素异常:确保您使用的是最新版本,已修复UI冲突问题
- 无法加载AI聊天框:检查浏览器控制台是否有JavaScript错误
- API请求失败:验证API密钥和网络连接是否正常
Changelog
1.2.1
- Fixed cache issues where deleted posts were still being recommended
- Enhanced logging for easier debugging
- Improved visibility checks for search results
1.2.0
- Added user usage limitation feature
- Improved Chinese keyword extraction algorithm
- Optimized search result sorting
1.1.0
- Added DeepSeek AI support
- Fixed UI compatibility issues
- Improved error handling
1.0.0
- Initial release
更新日志
1.2.1
- 修复已删除帖子仍被推荐的缓存问题
- 增强日志记录,便于调试
- 改进搜索结果的可见性检查
1.2.0
- 添加用户使用限制功能
- 改进中文关键词提取算法
- 优化搜索结果排序
1.1.0
- 增加DeepSeek AI支持
- 修复UI兼容性问题
- 改进错误处理
1.0.0
- 初始版本发布
License
This extension is licensed under the MIT License. See the LICENSE file for details.
许可证
本扩展采用MIT许可证。详见LICENSE文件。