{"id":27089024,"url":"https://github.com/hyxiaoge/fusion-api","last_synced_at":"2025-04-06T06:37:25.752Z","repository":{"id":280482185,"uuid":"941579614","full_name":"HyxiaoGe/fusion-api","owner":"HyxiaoGe","description":"统一的多模型AI聊天集成平台，支持文心一言、通义千问、DeepSeek、OpenAI等大模型，提供向量检索和文件处理功能。","archived":false,"fork":false,"pushed_at":"2025-04-04T04:49:37.000Z","size":147,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T05:26:51.475Z","etag":null,"topics":["ai","chatbot","chromadb","fastapi","langchain","llm","vector-database"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HyxiaoGe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-02T16:19:45.000Z","updated_at":"2025-04-04T04:49:40.000Z","dependencies_parsed_at":"2025-03-27T15:42:02.641Z","dependency_job_id":null,"html_url":"https://github.com/HyxiaoGe/fusion-api","commit_stats":null,"previous_names":["hyxiaoge/fusion-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HyxiaoGe%2Ffusion-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HyxiaoGe%2Ffusion-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HyxiaoGe%2Ffusion-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HyxiaoGe%2Ffusion-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HyxiaoGe","download_url":"https://codeload.github.com/HyxiaoGe/fusion-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445691,"owners_count":20939953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","chatbot","chromadb","fastapi","langchain","llm","vector-database"],"created_at":"2025-04-06T06:37:25.167Z","updated_at":"2025-04-06T06:37:25.746Z","avatar_url":"https://github.com/HyxiaoGe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fusion API - AI聊天集成平台\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/版本-0.1.0-blue.svg\" alt=\"版本\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/许可证-MIT-green.svg\" alt=\"许可证\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Python-3.8+-brightgreen.svg\" alt=\"Python版本\"\u003e\n\u003c/p\u003e\n\n## 📖 项目介绍\n\nFusion API是一个强大的AI聊天集成平台，支持多种大型语言模型（LLM）如文心一言、通义千问、OpenAI等，提供统一的API接口进行交互。系统集成了向量数据库功能，支持知识检索和上下文增强，让AI回答更加精准。\n\n## ✨ 主要特性\n\n- 🤖 **多模型集成**：支持文心一言、通义千问、DeepSeek、OpenAI等多种AI模型\n- 🔄 **统一API接口**：提供一致的交互体验，无论使用哪种底层模型\n- 💬 **会话管理**：完整的会话历史记录和管理功能\n- 📝 **自动标题生成**：基于对话内容智能生成对话标题\n- 🔍 **向量检索功能**：集成ChromaDB实现高效的语义搜索\n- 📁 **文件处理**：支持上传PDF、Word、文本等多种格式文件进行分析\n- 🛠️ **可定制提示词**：支持自定义提示词模板，优化AI输出\n\n## 🔧 技术栈\n\n- **后端框架**：FastAPI\n- **数据库**：PostgreSQL + SQLAlchemy\n- **向量数据库**：ChromaDB\n- **AI/LLM集成**：LangChain框架\n- **容器化**：Docker \u0026 Docker Compose\n- **Web服务**：Nginx, Uvicorn\n\n## 🚀 快速开始\n\n### 前置条件\n\n- Python 3.8+\n- Docker \u0026 Docker Compose\n- PostgreSQL数据库\n- 各AI服务商的API密钥\n\n### 环境变量配置\n\n创建`.env`文件并配置以下环境变量：\n\n```\n# 数据库配置\nDATABASE_URL=postgresql://fusion:fusion123!!@postgres:5432/fusion\n\n# API密钥\nWENXIN_API_KEY=你的文心一言API密钥\nWENXIN_SECRET_KEY=你的文心一言密钥\nQWEN_API_KEY=你的通义千问API密钥\nDEEPSEEK_API_KEY=你的DeepSeek API密钥\nOPENAI_API_KEY=你的OpenAI API密钥\n\n# 其他配置\nENABLE_VECTOR_EMBEDDINGS=true\n```\n\n### 使用Docker部署\n\n1. 克隆仓库\n```bash\ngit clone https://github.com/yourusername/fusion-api.git\ncd fusion-api\n```\n\n2. 启动服务\n```bash\ndocker-compose up -d\n```\n\n3. 访问API文档\n```\nhttp://localhost:8000/docs\n```\n\n### 手动安装\n\n1. 克隆仓库\n```bash\ngit clone https://github.com/yourusername/fusion-api.git\ncd fusion-api\n```\n\n2. 安装依赖\n```bash\npip install -r requirements.txt\n```\n\n3. 启动应用\n```bash\nuvicorn main:app --host 0.0.0.0 --port 8000 --reload\n``` ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyxiaoge%2Ffusion-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyxiaoge%2Ffusion-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyxiaoge%2Ffusion-api/lists"}