GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fastapi-practices/ai: FastAPI Best Architecture AI plugin

BranchesTags
Open more actions menu

Latest commit

 

History

78 Commits
78 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
api
api
 
 
chat
chat
 
 
crud
crud
 
 
model
model
 
 
protocol
protocol
 
 
providers
providers
 
 
schema
schema
 
 
service
service
 
 
sql/postgresql
sql/postgresql
 
 
tools
tools
 
 
utils
utils
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
__init__.py
__init__.py
 
 
dataclasses.py
dataclasses.py
 
 
enums.py
enums.py
 
 
hooks.py
hooks.py
 
 
plugin.toml
plugin.toml
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

AI

为系统提供基础 AI 文本对话能力

  • 基于 AG-UI 的流式文本对话
  • 支持对话列表、详情、重命名、置顶、删除
  • 支持消息编辑后重发、删除、清空和停止生成
  • 支持默认模型、供应商、模型和快捷短语管理
  • 支持多供应商文本模型和附件输入

本插件只保留基础对话能力

如需 MCP、空间、知识、客户端等完整 Buddy 能力,请前往插件市场安装 AI Buddy:https://docs.fba.wu-clan.cc/fastapi_best_architecture_docs/marketplace.html

Warning

自 1.0.1 版本起不再支持 MySQL 数据库,仅支持 PostgreSQL

插件类型

  • 应用级插件

配置说明

插件目录下 plugin.toml 的 [settings] 中包含以下内容:

[settings]
AI_HTTP_MAX_RETRIES = 5

在 backend/core/conf.py 中添加以下内容:

##################################################
# [ Plugin ] ai
##################################################
# 基础配置(in plugin.toml)
AI_HTTP_MAX_RETRIES: int = 5

配置项说明

  • AI_HTTP_MAX_RETRIES:控制模型供应商 HTTP 请求的最大重试次数

使用方式

  1. 安装并启用 AI 插件后重启后端服务
  2. 安装对应的前端 AI 插件,通过后台管理维护供应商、模型和快捷短语
  3. 创建 AI 供应商,再同步或创建对应模型
  4. 配置默认助手模型
  5. 在前端 AI Chat 中发起文本对话并维护会话历史

卸载说明

  • 卸载插件后,建议同步移除相关配置
  • 如前端页面或业务流程已依赖 AI 对话、默认模型、模型、供应商、快捷短语等能力,请同步清理对应集成

联系方式

  • 作者:wu-clan
  • 反馈方式:提交 Issue 或 PR

About

FastAPI Best Architecture AI plugin

Topics

aifbafba-pluginplugin

Resources

Readme
Activity
Custom properties

Stars

4 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

Generated from fastapi-practices/fba_plugin_template
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.