GithubHelp home page GithubHelp logo

vastxie / 99ai Goto Github PK

View Code? Open in Web Editor NEW
342.0 4.0 120.0 15.97 MB

99AI 稳定版:基于 NineAI 二开的可商业化 AI Web 应用(免授权,无后门,支持快速部署)。目标 ALL-IN-CHAT

Home Page: https://asst.lightai.cloud

JavaScript 73.42% CSS 14.38% HTML 11.04% Dockerfile 1.15%
ai chatgpt dalle midjourney all-in-chat

99ai's Introduction

99 AI 稳定版

99AI:基于 NineAI 2.4.2 二开的可商业化 AI Web 应用(免授权,无后门,非盗版,已整合前后端整合包,支持 Docker 快速部署)。

未编译源码暂不开源,相比稳定版,开发版进度更快一些。

页面预览

应用广场

应用广场

AI 绘画

AI 绘画

AI 音乐

screenshot-1713627618821

文件分析(开发版支持)

文件分析

绘画广场

绘画广场

专业绘图

绘画页

分销邀请

分销推荐

更新日志

稳定版 v3.3.0

  • 重构流式回复逻辑,加入错误反馈并优化用户端等待动画
  • 调整文档显示 UI,提升视觉体验
  • 新增 AI 回复 TTS 播报功能【后台模型管理-模型设置-添加特殊模型 tts-1
  • 对话页新增 Dalle 绘图风格选择与连续对话绘画选项,配置入口:后台模型管理-绘画设置-Dalle 绘图配置
  • 新增对话页 Midjourney 图片尺寸及风格选择功能
  • 重构应用广场 UI,注意:本次升级可能会导致应用广场图片丢失,请务必提前备份
  • 优化侧边栏显示,现支持应用收藏,允许同一应用开启多个对话窗口
  • 新增 GPTs 适配及应用固定模型功能,需先在后台添加 GPTs 模型后进行设置
  • 创意模型 【后台模型管理-模型设置-添加创意模型】现已针对以下模型特别优化:
    • 【dalle-e-3】(OpenAI 格式)
    • 【midjourney】(Mj-Plus 格式)
    • 【stable-diffusion】(LightAI API 中转格式)
    • 【suno】(LightAI API 中转格式)
  • 邮箱 SMTP 配置已迁移至后台【用户管理-邮件登录配置】,同时【基础配置】新增网页链接选项,增强发信显示效果
  • 重构应用逻辑,翻译及导图特殊模型不再需配置,已整合至【模型管理-系统应用】
  • 新增模型配置选项,允许设置模型调用频率限制,确保用户体验

开发版已/将支持

  • 对话页 Midjourney 绘图支持 图生图 人脸一致性 风格一致性 以及更多自定义参数选择
  • 全模型文件分析功能(只支持带文字的 pdf,word,ppt,txt,md 等文件)
  • 全新的插件系统——联网搜索、思维导图等 ··· ···
  • SD3 / SD3 Turbo 绘图模型,Stable Video 图生视频模型(stability.ai API 格式)
  • Azure TTS 模型支持,语音播报更生动自然
  • 临时文件支持本地存储并自动清空
  • 更多功能持续开发中 ··· ···
历史日志

v3.0.0

前端改进

  • 对话页UI重构,参考ChatGPT风格,增加美观度。
  • 新增对话页 Midjourney 绘图功能,包括绘画进度反馈及点按操作。
  • Dalle绘图支持模型绘画比例选择(方形/宽屏/垂直)。
  • 绘图页面新增区域重绘功能。
  • 全局字体优先使用系统默认,优化阅读体验。
  • 适配ALL模型及GPTs返回图片,修正显示过大的问题。
  • 对话页根据模型自动展示AI头像,可手动替换文件。

后台配置调整

  • 模型配置迁移到模型管理,分普通对话/绘画/特殊模型。
  • 后台支持模型文件上传模块开关,区分ALL/4V格式。
  • 后台新增 Midjourney 提示词优化开关及优化词配置

注意

  • 重要:旧版 Midjourney 配置不再生效,需在模型配置绘画模型中重新配置。
  • 模型配置支持扣除积分类型选择。
  • 后台管理菜单重新排版,精简非必要配置。

v2.6.0

  1. 新增 mj-proxy-plus 支持:支持第三方中转,添加容错和重试机制。(可联系作者获得 mj-proxy-plus 支持)
  2. 简化模型配置流程:精简了 Midjourney 模型的配置要求,现在用户仅需填写地址和 key 即可完成后台配置,简化了操作步骤。
  3. 新增模型排序:引入了新的模型排序功能,优化了模型排序逻辑,以提升用户的操作体验。
  4. DALL-E 绘图功能整合:DALL-E 绘图功能现在可以在 Chat 组件内直接使用,DALL-E-3 模型可以在后台进行单独配置。
  5. 注意事项:本次升级 Midjourney 对历史数据不兼容,在升级前请做好数据备份,以防数据丢失。

v2.5.0

  1. GPT-4V(gpt-4-1106-vision-preview)模型识图功能:添加了 GPT-4V 的图像识别功能,增强了模型的多媒体处理能力。
  2. 文件上传预览及显示美化:对文件上传预览及显示进行了美化,目前仅支持 4V 和 ALL 模型。
  3. 简化模型切换逻辑:简化了模型切换逻辑,支持更多国内模型。该功能需搭配类 OneAPI 的中转管理使用。
  4. Chat 页面 UI 精简和美化:对 Chat 页面进行了精简和美化。请注意,其他页面尚未进行同步优化,因此在多界面切换时可能会有一定的割裂感。后续将继续对其他页面进行优化。

v2.4.5

  1. 部分页面 UI 精简。
  2. 管理端地址改为 /admin,默认密码均设为 123456
  3. 支持使用 GPT-4-All(第三方逆向)解析上传的文件、图片。
  4. 增加模型关联 Token 计费(可选)。
  5. MJ 版本默认调整为 v6.0。

安装部署

推荐使用 Docker 环境来编译和部署镜像,或者直接在 Node.js 环境中进行安装。虽然安装文档可能不是非常详细,但绝对够用。如果在安装或配置过程中遇到任何问题,优先使用 AI助手 货交流群内提出问题,以获得更多帮助和支持。

Docker 部署 (推荐)

  1. 安装 Docker 及 Docker-compose

    • 使用Docker 官网提供的一键安装链接安装Docker及Docker-compose。

      curl -fsSL https://get.docker.com | bash -s docker
  2. 服务管理

    • 后台启动服务

      docker-compose up -d
    • 查看日志

      docker-compose logs
    • 停止服务

      docker-compose down
    • 重新构建并启动服务

      docker-compose up -d --build
  3. 访问项目

    • 在浏览器中访问 http://localhost:9520,如果配置了 nginx 反向代理,则通过配置的域名访问。

Node.js + PM2 部署

环境准备

  1. 安装 Node.js 环境

    推荐使用 nvm (Node Version Manager) 来安装 Node.js。

    • 首先,安装 nvm,你可以从 nvm 的 GitHub 仓库找到安装指南: nvm GitHub 仓库

    • 按照仓库中的安装说明进行操作,安装完成后,重启你的终端或命令行界面。

    • 安装 Node.js 版本 16.0 或更高版本:

      nvm install 16
      nvm use 16
    • 验证 Node.js 安装成功及版本:

      node -v

    使用这种方法安装 Node.js,可以确保你的开发环境中 Node.js 的版本管理更为灵活和方便。

  2. 安装 PM2 / PNPM

    • 使用 npm 安装 PM2:

      npm install pm2 -g
    • 使用 npm 安装 pnpm:

      npm install -g pnpm
    • 确认PM2, 和 pnpm 都已正确安装并且可以运行:

      pm2 -v
      pnpm -v
    • 这一步确保所有必需的工具和软件已正确安装,并且它们的版本符合项目需求。

配置项目

  1. 配置环境变量

    • 复制.env.example文件为.env
    • 根据需要修改.env文件中的配置项。
  2. 安装项目依赖

    • 运行命令:pnpm install(若安装缓慢可尝试使用国内源)。
    • 这将根据package.json文件安装所有必需的依赖。

启动项目

  1. 启动服务

    • 使用命令:pnpm start
    • 这将启动项目,并默认在 9520 端口监听。
  2. 访问项目

    • 在浏览器中访问 http://localhost:9520,如果配置了 nginx 反向代理,则通过配置的域名访问。

项目升级

  1. 拉取更新

    • 拉取新的整合包:git pull
  2. 删除旧进程

    • 删除旧的 PM2 进程。
  3. 安装依赖

    • 运行命令:pnpm install 以安装 package.json 中定义的必需依赖。
  4. 启动服务

    • 使用命令:pnpm start 来启动项目,它将默认在 9520 端口监听。

管理平台

  • 管理端地址/admin

  • 普通管理员账号admin

  • 超级管理员账号super

  • 密码123456

普通管理员,可以预览后台非敏感信息,默认不激活。请使用超级管理员账号登入后台,并及时修改密码。

学习交流

扫码添加微信备注 99,拉交流群。(不接受私聊技术咨询,有问题优先群内交流)

99ai's People

Contributors

kengrofork avatar richqaq avatar vastxie avatar xinyin025 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

99ai's Issues

提一些小小的意见

1.可以增加一个本地储存的选项吗
2.gpts可以通过类似gptshunter这种网站上同步吗
3.用户可以自己创建应用,管理者审核
4.可以在管理页选择,对话的标题可以直接取对话的前几个字,就不用调用默认模型浪费了一小点余额了
谢谢大佬了

2.5.0外观功能咨询

请问2.5.0版本的左侧功能栏,只显示icon么?能不能配置显示文字描述,有些功能如果没有文字提醒的话,icon不太直观

模型无法配置

配置 OpenAI 模型,但是一直请求不了

data: '<html>\r\n' +
      '<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>\r\n' +
      '<body>\r\n' +
      '<center><h1>400 Bad Request</h1></center>\r\n' +
      '<center>The plain HTTP request was sent to HTTPS port</center>\r\n' +
      '<hr><center>nginx/1.18.0 (Ubuntu)</center>\r\n' +
      '</body>\r\n' +
      '</html>\r\n'
  }

用DOCKER拉的最新3.3出错

Nest] 1 - 04/26/2024, 3:02:06 PM LOG [RouterExplorer] Mapped {/api/models/setModelType, POST} route +0ms
[Nest] 1 - 04/26/2024, 3:02:06 PM LOG [RouterExplorer] Mapped {/api/models/delModelType, POST} route +0ms
[Nest] 1 - 04/26/2024, 3:02:06 PM LOG [DatabaseModule] Your MySQL database named chatgpt has been connected
[Nest] 1 - 04/26/2024, 3:02:07 PM ERROR [OfficialService] 还未配置微信的appId和secret、配置后才可进行微信扫码登录!!!
[Nest] 1 - 04/26/2024, 3:02:07 PM LOG [QueueProcessor] Queue cleaned: 0 jobs of type active were cleaned.
[Nest] 1 - 04/26/2024, 3:02:07 PM LOG [NestApplication] Nest application successfully started +7ms
[Nest] 1 - 04/26/2024, 3:02:07 PM LOG [Main] 服务启动成功: http://localhost:9520/nineai/swagger/docs
/app/dist/common/filters/allExceptions.filter.js:17
const exceptionRes = exception.getResponse() || 'inter server error';
^

TypeError: exception.getResponse is not a function
at AllExceptionsFilter.catch (/app/dist/common/filters/allExceptions.filter.js:17:40)
at ExceptionsHandler.invokeCustomFilters (/app/node_modules/.pnpm/@nestjs+core@9.4.3_@nestjs[email protected][email protected][email protected]_reflec_hj2squot6pumtkwmc5n77mjzr4/node_modules/@nestjs/core/exceptions/exceptions-handler.js:33:26)
at ExceptionsHandler.next (/app/node_modules/.pnpm/@nestjs+core@9.4.3_@nestjs[email protected][email protected][email protected]_reflec_hj2squot6pumtkwmc5n77mjzr4/node_modules/@nestjs/core/exceptions/exceptions-handler.js:13:18)
at /app/node_modules/.pnpm/@nestjs+core@9.4.3_@nestjs[email protected][email protected][email protected]_reflec_hj2squot6pumtkwmc5n77mjzr4/node_modules/@nestjs/core/router/router-proxy.js:25:35
at Layer.handle_error (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/layer.js:71:5)
at trim_prefix (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/index.js:326:13)
at /app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/index.js:346:12)
at next (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/index.js:280:10)
at Layer.handle_error (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/layer.js:67:12)
at trim_prefix (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/index.js:326:13)
at /app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/index.js:346:12)
at next (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/index.js:280:10)
at /app/node_modules/.pnpm/[email protected]/node_modules/express/lib/response.js:455:7
at SendStream.onerror (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/response.js:1071:5)

Node.js v18.20.2
请问这是什么错误?

依赖报销怎么办?

dependencies:

  • @nestjs/platform-express 7.6.18
  • @nestjs/platform-express 9.4.3 (10.3.3 is available)

 WARN  Issues with peer dependencies found
.
└─┬ nestjs-redis 1.3.3
└─┬ @nestjs/core 7.6.18
└── ✕ unmet peer @nestjs/platform-express@^7.0.0: found 9.4.3

我在安装DOCKER时出现以下错误

请问这是什么问题
root@linux:/ai/ai99# ls
docker-compose.yml
root@linux:/ai/ai99# docker-compose up -d
[+] Building 0.4s (1/1) FINISHED docker:default
=> [nineai-open internal] load build definition from Dockerfile 0.2s
=> => transferring dockerfile: 2B 0.0s
failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory
root@linux:/ai/ai99# docker-compose up -d
[+] Building 24.2s (9/10) docker:default
=> [nineai-open internal] load build definition from Dockerfile 0.2s
=> => transferring dockerfile: 323B 0.1s
=> [nineai-open internal] load metadata for docker.io/library/node:18-alpine 3.1s
=> [nineai-open internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [nineai-open internal] load build context 0.0s
=> => transferring context: 1.89kB 0.0s
=> [nineai-open build 1/5] FROM docker.io/library/node:18-alpine@sha256:c7620fdecfefb96813da62519897808775230386f4c8482e972e37b8b18cb460 11.7s
=> => resolve docker.io/library/node:18-alpine@sha256:c7620fdecfefb96813da62519897808775230386f4c8482e972e37b8b18cb460 0.0s
=> => sha256:ff171c16ee4e8ed3a0ae3edb6fb9558f281134a3879eedca7d79fc2e16e46073 40.25MB / 40.25MB 8.2s
=> => sha256:7c215e7ef3945bd4fdac5a20f1e4a29c62f28c8493ad05d3e651d62cf069140d 2.34MB / 2.34MB 1.4s
=> => sha256:3f72a72846173b6a02c1f73db9a74aca2af50fb39bf13ba2e4d12d13e5722d6c 451B / 451B 0.3s
=> => sha256:c7620fdecfefb96813da62519897808775230386f4c8482e972e37b8b18cb460 1.43kB / 1.43kB 0.0s
=> => sha256:17b35d6932abf679c57caa7b8297ded19d897606b92dcc415940c7690459d8c9 1.16kB / 1.16kB 0.0s
=> => sha256:995e68c9d946f454675dd18204619ccd3b8e065f55f0ae1996f00300722554f9 7.14kB / 7.14kB 0.0s
=> => extracting sha256:ff171c16ee4e8ed3a0ae3edb6fb9558f281134a3879eedca7d79fc2e16e46073 2.7s
=> => extracting sha256:7c215e7ef3945bd4fdac5a20f1e4a29c62f28c8493ad05d3e651d62cf069140d 0.1s
=> => extracting sha256:3f72a72846173b6a02c1f73db9a74aca2af50fb39bf13ba2e4d12d13e5722d6c 0.0s
=> [nineai-open build 2/5] WORKDIR /app 0.3s
=> [nineai-open build 3/5] COPY . . 0.1s
=> [nineai-open build 4/5] RUN npm install -g pnpm 5.9s
=> ERROR [nineai-open build 5/5] RUN pnpm install 2.5s

[nineai-open build 5/5] RUN pnpm install:
2.354  ERR_PNPM_NO_PKG_MANIFEST  No package.json found in /app


failed to solve: process "/bin/sh -c pnpm install" did not complete successfully: exit code: 1
root@linux:/ai/ai99#

您好,看到请回复一下

您好,我应该买咯一个你老版本代码的人,应该是不良商家卖我的,花费899,目前自己尝试本地部署发现,能启动事例,但是访问不了端口。已经试过很多方法咯,一直再想办法联络你,可付费解决,困扰我好久咯
eb9f6a5d44911a88d344fd3ee4f3f34
4d348cb345992c02dbb9b85ac7c9d43

专业绘图失败

0|nineai-v2.4.5 | 2024-01-24 15:10:13: [Nest] 4470 - 01/24/2024, 3:10:13 PM DEBUG [MidjourneyService] 本次绘图指令为[f1fee638d] 博美 --v 6.0 --s 100 --ar 9:16 --c 0 --q 1
0|nineai-v2.4.5 | 2024-01-24 15:10:13: [Nest] 4470 - 01/24/2024, 3:10:13 PM ERROR [MidjourneyService] 发送绘画指令失败
0|nineai-v2.4.5 | 2024-01-24 15:10:13: error: HttpException: 发送绘图指令失败、请联系管理员检测绘画配置!
0|nineai-v2.4.5 | at MidjourneyService.sendDrawCommand (/www/wwwroot/ai/dist/modules/midjourney/midjourney.service.js:185:19)
0|nineai-v2.4.5 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|nineai-v2.4.5 | at async MidjourneyService.draw (/www/wwwroot/ai/dist/modules/midjourney/midjourney.service.js:52:17)
0|nineai-v2.4.5 | at async QueueProcessor.handleJob (/www/wwwroot/ai/dist/modules/queue/queue.process.js:23:21)
0|nineai-v2.4.5 | at async /www/wwwroot/ai/node_modules/.pnpm/[email protected]/node_modules/bull/lib/p-timeout.js:69:17 {
0|nineai-v2.4.5 | response: '发送绘图指令失败、请联系管理员检测绘画配置!',
0|nineai-v2.4.5 | status: 400,
0|nineai-v2.4.5 | options: undefined
0|nineai-v2.4.5 | }

作者你好,我在docker部署完成后

作者,你好,我在docker compose部署完成之后,打开页面,显示无法访问页面。如图。
image
image
然后,这些容器时不时的会自动重启,端口也是开放的,不知道什么原因。
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.