jiten14/jitone-ai 问题修复 & 功能扩展

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

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

jiten14/jitone-ai

Composer 安装命令:

composer require jiten14/jitone-ai

包简介

jitone-ai is a powerful FilamentPHP plugin that integrates AI-powered features directly into your Filament forms.

README 文档

README

jitone-ai is a powerful FilamentPHP plugin that integrates AI-powered features directly into your Filament forms.

Unlock powerful features with the Pro version here.

Limited-Time Offer:

For a short time, you can get 20% off your purchase by using the coupon code SAVEPRO at checkout. This offer is only available for a limited period.

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Installation

composer require jiten14/jitone-ai

Usage

  1. After downloading, Run the package installation command:
php artisan jitone-ai:install

This command will:

  • Publish the configuration file for Jitone AI Settings.
  • Publish the configiration file for openai-php/laravel Settings.
  • Create a symbolic link for storage
  1. We use openai-php/laravel package to connect with OpenAI API. Blank environment variables for the OpenAI API key and organization id are already appended to your .env file, Add your API key here.
OPENAI_API_KEY=sk-...
OPENAI_ORGANIZATION=org-...

Configuration

The config/jitone-ai.php file allows you to set default values and templates:

  • Set default AI models, max tokens, and temperature
  • Configure image generation settings
  • Add custom content templates

Usage for Developers

Adding AI to Built-in Filament Form Fields

You can add AI generation capabilities to TextInput, Textarea, and RichEditor fields using the withAI() method:

Without Options

use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\RichEditor;

TextInput::make('title')
    ->withAI()

Textarea::make('description')
    ->withAI()

RichEditor::make('content')
    ->withAI()

With Options

TextInput::make('title')
    ->withAI([
        'model' => 'gpt-4',
        'max_tokens' => 100,
        'temperature' => 0.7,
    ])

Textarea::make('description')
    ->withAI([
        'model' => 'gpt-3.5-turbo',
        'max_tokens' => 200,
        'temperature' => 0.5,
    ])

RichEditor::make('content')
    ->withAI([
        'model' => 'gpt-4',
        'max_tokens' => 500,
        'temperature' => 0.8,
    ])

Using Dedicated AI Fields

AITextField

The package provides a dedicated AITextField for enhanced content generation:

Without Options:
use Jiten14\JitoneAi\Forms\Components\AITextField;

AITextField::make('content')->withAI()
With Options:
AITextField::make('content')
    ->withAI([
        'model' => 'gpt-4',
        'max_tokens' => 300,
        'temperature' => 0.6,
    ])

AIFileUpload for Image Generation

Use the AIFileUpload field with the imageAI() method to enable AI image generation:

Without Options:
use Jiten14\JitoneAi\Forms\Components\AIFileUpload;

AIFileUpload::make('image')
    ->imageAI()
With Options:
AIFileUpload::make('image')
    ->imageAI([
        'size' => '1024x1024',
    ])

Usage for End-Users

Generating Content

  1. In a form with AI-enabled fields, users will see a "Generate with AI" link right upper to the field.
  2. Clicking this link opens a modal where users can:
    • Enter a custom prompt
    • Choose from pre-defined templates (if configured)
    • Use existing content for modification
  3. If modifying existing content, users can choose to:
    • Refine: Improve the existing text
    • Expand: Add more details to the existing text
    • Shorten: Summarize the existing text
  4. After entering the prompt, selecting a template, or choosing a modification option, click "Generate" to create or modify the content.
  5. The generated or modified content will be inserted into the form field.

Generating Images

  1. For fields with AI image generation, users will see a "Generate with AI" link right upper to the upload field.
  2. Clicking this link opens a modal where users can:
    • Describe the image they want to generate
    • Choose from pre-defined image prompts (if configured)
    • Select the desired image size (if multiple options are provided)
  3. After entering the description, selecting a template, and choosing the size, click "Generate" to create the image.
  4. The generated image will be uploaded and associated with the form field.

Advanced Features

  • The package automatically checks for required dependencies and their versions, logging warnings if any are missing or outdated.
  • Developers can add custom templates and prompts through the configuration file.

Changelog

Jitone AI follows semantic versioning:

  • v0.1.9: Updated Test files to support latest versions.

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

Contributing

Please see CONTRIBUTING for details.

FAQ

  1. File upload previews not loading after generating Image.
    • Ans.- Make sure that the APP_URL variable in your .env file matches the domain you're using to access your app from, including the protocol (http or https).

Security Vulnerabilities

If you discover any security vulnerabilities or bugs, please let us know so I can address them promptly.

Support

For support with this package or to report any issues, feel free to reach out Jitone AI Support. I am happy to assist you!

🚀 Take Your Filament Forms to the Next Level — Upgrade to JitoneAI Pro

If you're finding value in the free version of JitoneAI, the Pro package is built to supercharge your workflow. Designed for developers and teams who want more control, more capabilities, and more productivity — without reinventing the wheel.

🔓 What’s Inside JitoneAI Pro?

  • Custom AI Templates for Different User Roles
  • 🧠 Prompt Memory for Better Contextual Generation
  • 📸 Advanced Image Customization Tools
  • 💼 Multi-model Flexibility with Prioritized Fallbacks
  • 📊 Usage Logs & Debug Tools for AI Requests
  • 🛠️ Developer-First Hooks for Deep Customization

💡 Why Go Pro?

You’ve already seen what JitoneAI can do — but the Pro version removes the ceiling. Whether you're building for clients, internal teams, or products at scale, JitoneAI Pro saves hours, reduces friction, and ensures production-grade flexibility.

🎯 Ideal For

  • Agencies building client portals with rich content automation
  • SaaS teams shipping AI-powered user experiences
  • Freelancers who want to deliver more — faster
  • Any developer who values performance and polish

👉 Get JitoneAI Pro

For more details and to purchase JitoneAI Pro, visit the official Filament plugin page:
https://filamentphp.com/plugins/jitendriya-tripathy-jitoneai-pro

Own your AI workflow. Ship faster. Upgrade with confidence.

Credits

License

The MIT License (MIT). Please see License File for more information.

jiten14/jitone-ai 适用场景与选型建议

jiten14/jitone-ai 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.59k 次下载、GitHub Stars 达 22, 最近一次更新时间为 2024 年 09 月 08 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 jiten14/jitone-ai 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 3.59k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 22
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 22
  • Watchers: 3
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-08