定制 ferarandrei1/filament-ai-chat-widget 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ferarandrei1/filament-ai-chat-widget

最新稳定版本:v1.0.0

Composer 安装命令:

composer require ferarandrei1/filament-ai-chat-widget

包简介

A beautiful AI chat widget plugin for Filament v3 with OpenAI integration

README 文档

README

License Filament Laravel

AI chat widget for Filament v3 with OpenAI integration.

Chat Widget

Requirements

  • PHP 8.1+
  • Laravel 11.x
  • Filament 3.x
  • OpenAI API key

Installation

Install via Composer:

composer require ferarandrei1/filament-ai-chat-widget

Run migrations:

php artisan vendor:publish --tag="filament-ai-chat-widget-migrations"
php artisan migrate

Add your OpenAI API key to .env:

OPENAI_API_KEY=sk-your-api-key-here
OPENAI_ORGANIZATION=your-organization-here

Register the plugin & knowledge resource in your Panel Provider:

use Feraandrei1\FilamentAiChatWidget\FilamentAiChatPlugin;
use Feraandrei1\FilamentAiChatWidget\Filament\Resources\AiKnowledgeBaseResource;

public function panel(Panel $panel): Panel
{
    return $panel
        ->resources([
            AiKnowledgeBaseResource::class,
        ])
        ->plugins([
            FilamentAiChatPlugin::make(),
        ]);
}

Clear caches:

php artisan optimize:clear

Usage

The chat widget appears automatically on all panel pages for authenticated users.

Customization

You can customize the behavior and appearance of the widget by publishing the configuration:

php artisan vendor:publish --tag="filament-ai-chat-widget-config"

Then edit config/filament-ai-chat-widget.php to adjust settings like:

  • Default AI model
  • Chat history limit
  • UI appearance

License

MIT License

统计信息

  • 总下载量: 76
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固