icetalker/filament-chatgpt-bot 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

icetalker/filament-chatgpt-bot

Composer 安装命令:

composer require icetalker/filament-chatgpt-bot

包简介

Integrate with OpenAI ChatGPT

README 文档

README

Filament ChatGPT Bot is a filament plugin that allow you to use ChatGPT out of the box within Filament Application.

Latest Version on Packagist Total Downloads

Preview: Full Screen: Light Mode:

Feature

  • Integrate with ChatGPT
  • Easy to Setup
  • Shortcut allows control of panel in more convenient way
  • Support for dark mode

Installation

First, you can install the package via composer:

composer require icetalker/filament-chatgpt-bot

For Filament V2, Please lock the the version to v0.1.*:

composer require icetaker/filament-chatgpt-bot:"v0.1.3"

Publish Config Files

Next, you can publish the config files with:

php artisan vendor:publish --tag="filament-chatgpt-bot-config"

This will create a config/filament-chatgpt-bot.php configuration file in your project, which you can modify to your needs using environment variables:

OPENAI_API_KEY=sk-...

Go to admin panel, you will see a small icon in gray color on the bottom-right corner of every page. Click the icon, you will then see a chat panel. And now you can talk to OpenAI ChatGPT with the chat panel. Click the small icon again, the chat panel will become hidden again.

By optionally adding the OPENAI_PROXY to .env file, you could use http proxy to connect ChatGPT. Example as below:

OPENAI_PROXY=127.0.0.1:8080

Views

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-chatgpt-bot-views"

More

  1. By defult, there is a small chatgpt icon on bottom-right corner of admin panel after the package installed. You could hide the icon by setting enable to false in config/filament-chatgpt-bot.php files:
    'enable' => false,

This may require you publish config files.

  1. You could also render it in Panel Configuration like this:
public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->renderHook(
            'panels::body.end',
            fn (): string => auth()->check() ? Blade::render('@livewire(\'livewire-ui-modal\')') : '',
        );
}

Set enable in config/filament-chatgpt-bot.php files, if you like to render it in Panel Configuration.

  1. Alternatively, you can add it to any blade file within livewire page if you like to do it manually:
<body>

    ...

    @livewire('filament-chatgpt-bot')
</body>

This is work for all livewire page in any Laravel Project, not just Filament. Please also make sure Tailwind CSS and Livewire were imported properly while use in other Laravel Project. And please note that you should also set enable to be false in config/filament-chatgpt-bot.php files while use this in non-Filament Project.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

Support

Any Problem please email: martin.hwang@outlook.com.

icetalker/filament-chatgpt-bot 适用场景与选型建议

icetalker/filament-chatgpt-bot 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.89k 次下载、GitHub Stars 达 36, 最近一次更新时间为 2023 年 04 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「icetalker」 「filament-chatgpt-bot」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 icetalker/filament-chatgpt-bot 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 icetalker/filament-chatgpt-bot 我们能提供哪些服务?
定制开发 / 二次开发

基于 icetalker/filament-chatgpt-bot 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 5.89k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 36
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 36
  • Watchers: 3
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-24