Skip to content

Commit

Permalink
4.8 preview (#1288)
Browse files Browse the repository at this point in the history
* Revert "lafAccount add pat & re request when token invalid (#76)" (#77)

This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be.

* perf: workflow ux

* system config

* Newflow (#89)

* docs: Add doc for Xinference (#1266)

Signed-off-by: Carson Yang <[email protected]>

* Revert "lafAccount add pat & re request when token invalid (#76)" (#77)

This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be.

* perf: workflow ux

* system config

* Revert "lafAccount add pat & re request when token invalid (#76)" (#77)

This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be.

* Revert "lafAccount add pat & re request when token invalid (#76)" (#77)

This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be.

* Revert "lafAccount add pat & re request when token invalid (#76)" (#77)

This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be.

* rename code

* move code

* update flow

* input type selector

* perf: workflow runtime

* feat: node adapt newflow

* feat: adapt plugin

* feat: 360 connection

* check workflow

* perf: flow 性能

* change plugin input type (#81)

* change plugin input type

* plugin label mode

* perf: nodecard

* debug

* perf: debug ui

* connection ui

* change workflow ui (#82)

* feat: workflow debug

* adapt openAPI for new workflow (#83)

* adapt openAPI for new workflow

* i18n

* perf: plugin debug

* plugin input ui

* delete

* perf: global variable select

* fix rebase

* perf: workflow performance

* feat: input render type icon

* input icon

* adapt flow (#84)

* adapt newflow

* temp

* temp

* fix

* feat: app schedule trigger

* feat: app schedule trigger

* perf: schedule ui

* feat: ioslatevm run js code

* perf: workflow varialbe table ui

* feat: adapt simple mode

* feat: adapt input params

* output

* feat: adapt tamplate

* fix: ts

* add if-else module (#86)

* perf: worker

* if else node

* perf: tiktoken worker

* fix: ts

* perf: tiktoken

* fix if-else node (#87)

* fix if-else node

* type

* fix

* perf: audio render

* perf: Parallel worker

* log

* perf: if else node

* adapt plugin

* prompt

* perf: reference ui

* reference ui

* handle ux

* template ui and plugin tool

* adapt v1 workflow

* adapt v1 workflow completions

* perf: time variables

* feat: workflow keyboard shortcuts

* adapt v1 workflow

* update workflow example doc (#88)

* fix: simple mode select tool

---------

Signed-off-by: Carson Yang <[email protected]>
Co-authored-by: Carson Yang <[email protected]>
Co-authored-by: heheer <[email protected]>

* doc

* perf: extract node

* extra node field

* update plugin version

* doc

* variable

* change doc & fix prompt editor (#90)

* fold workflow code

* value type label

---------

Signed-off-by: Carson Yang <[email protected]>
Co-authored-by: Carson Yang <[email protected]>
Co-authored-by: heheer <[email protected]>
  • Loading branch information
3 people authored Apr 25, 2024
1 parent b08d81f commit 439c819
Show file tree
Hide file tree
Showing 505 changed files with 23,420 additions and 18,065 deletions.
21 changes: 5 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,6 @@ RUN [ -f pnpm-lock.yaml ] || (echo "Lockfile not found." && exit 1)

RUN pnpm i

# --------- install dependence -----------
FROM node:18.17-alpine AS workerDeps
WORKDIR /app

ARG proxy

RUN [ -z "$proxy" ] || sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN apk add --no-cache libc6-compat && npm install -g [email protected]
# if proxy exists, set proxy
RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npmmirror.com

COPY ./worker /app/worker
RUN cd /app/worker && pnpm i --production --ignore-workspace

# --------- builder -----------
FROM node:18.17-alpine AS builder
WORKDIR /app
Expand Down Expand Up @@ -72,12 +58,15 @@ COPY --from=builder /app/projects/$name/public /app/projects/$name/public
COPY --from=builder /app/projects/$name/next.config.js /app/projects/$name/next.config.js
COPY --from=builder --chown=nextjs:nodejs /app/projects/$name/.next/standalone /app/
COPY --from=builder --chown=nextjs:nodejs /app/projects/$name/.next/static /app/projects/$name/.next/static
# copy server chunks
COPY --from=builder --chown=nextjs:nodejs /app/projects/$name/.next/server/chunks /app/projects/$name/.next/server/chunks
# copy worker
COPY --from=builder --chown=nextjs:nodejs /app/projects/$name/.next/server/worker /app/projects/$name/.next/server/worker
# copy package.json to version file
COPY --from=builder /app/projects/$name/package.json ./package.json
# copy woker
COPY --from=workerDeps /app/worker /app/worker
# copy config
COPY ./projects/$name/data /app/data

RUN chown -R nextjs:nodejs /app/data

ENV NODE_ENV production
Expand Down
Binary file modified docSite/assets/imgs/demo-appointment1.webp
Binary file not shown.
Binary file removed docSite/assets/imgs/demo-appointment2.jpg
Binary file not shown.
Binary file added docSite/assets/imgs/demo-appointment2.webp
Binary file not shown.
Binary file removed docSite/assets/imgs/demo-appointment3.jpg
Binary file not shown.
Binary file added docSite/assets/imgs/demo-appointment3.webp
Binary file not shown.
Binary file removed docSite/assets/imgs/demo-appointment4.jpg
Binary file not shown.
Binary file added docSite/assets/imgs/demo-appointment4.webp
Binary file not shown.
Binary file removed docSite/assets/imgs/demo-appointment5.jpg
Binary file not shown.
Binary file added docSite/assets/imgs/demo-appointment5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docSite/assets/imgs/demo-appointment6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docSite/assets/imgs/demo-appointment7.jpg
Binary file not shown.
Binary file removed docSite/assets/imgs/demo-appointment8.jpg
Binary file not shown.
Binary file removed docSite/assets/imgs/demo-appointment9.jpg
Binary file not shown.
Binary file removed docSite/assets/imgs/demo-dalle1.png
Binary file not shown.
Binary file added docSite/assets/imgs/demo-dalle1.webp
Binary file not shown.
Binary file modified docSite/assets/imgs/demo-dalle2.webp
Binary file not shown.
Binary file added docSite/assets/imgs/demo-fix-evidence1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docSite/assets/imgs/demo-fix-evidence1.png
Binary file not shown.
Binary file added docSite/assets/imgs/demo-fix-evidence2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docSite/assets/imgs/demo-fix-evidence2.png
Binary file not shown.
Binary file removed docSite/assets/imgs/feishuwebhook1.png
Binary file not shown.
Binary file added docSite/assets/imgs/feishuwebhook1.webp
Binary file not shown.
Binary file modified docSite/assets/imgs/feishuwebhook2.webp
Binary file not shown.
Binary file modified docSite/assets/imgs/google_search_1.webp
Binary file not shown.
Binary file removed docSite/assets/imgs/google_search_2.jpg
Binary file not shown.
Binary file added docSite/assets/imgs/google_search_2.webp
Binary file not shown.
Binary file removed docSite/assets/imgs/google_search_3.png
Binary file not shown.
Binary file added docSite/assets/imgs/google_search_3.webp
Binary file not shown.
Binary file removed docSite/assets/imgs/google_search_4.png
Binary file not shown.
Binary file added docSite/assets/imgs/google_search_4.webp
Binary file not shown.
Binary file removed docSite/assets/imgs/versatile_assistant_1.png
Binary file not shown.
Binary file removed docSite/assets/imgs/versatile_assistant_2.png
Binary file not shown.
Binary file removed docSite/assets/imgs/versatile_assistant_3.png
Binary file not shown.
Binary file removed docSite/assets/imgs/versatile_assistant_4.png
Binary file not shown.
Binary file removed docSite/assets/imgs/versatile_assistant_5.png
Binary file not shown.
Binary file removed docSite/assets/imgs/versatile_assistant_6.png
Binary file not shown.
Binary file removed docSite/assets/imgs/versatile_assistant_7.png
Binary file not shown.
4 changes: 2 additions & 2 deletions docSite/content/docs/development/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ images: []

### 其他模型没法进行问题分类/内容提取

需要给其他模型配置`toolChoice=false`,就会默认走提示词模式。目前内置提示词仅针对了商业模型API进行测试。
问题分类基本可用,内容提取不太行
1. 看日志。如果提示 JSON invalid,not support tool 之类的,说明该模型不支持工具调用或函数调用,需要设置`toolChoice=false``functionCall=false`,就会默认走提示词模式。目前内置提示词仅针对了商业模型API进行测试。问题分类基本可用,内容提取不太行
2. 如果已经配置正常,并且没有错误日志,则说明可能提示词不太适合该模型,可以通过修改`customCQPrompt`来自定义提示词

### 页面崩溃

Expand Down
2 changes: 1 addition & 1 deletion docSite/content/docs/development/openapi/share.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ type ResponseType = {
pluginOutput?: Record<string, any>; // 插件输出
pluginDetail?: ChatHistoryItemResType[]; // 插件详情

tfSwitchResult?: boolean; // 判断器结果
isElseResult?: boolean; // 判断器结果
}
```
Expand Down
25 changes: 25 additions & 0 deletions docSite/content/docs/development/upgrading/48.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: 'V4.8(进行中)'
description: 'FastGPT V4.8 更新说明'
icon: 'upgrade'
draft: false
toc: true
weight: 824
---

## 新工作流

FastGPT workflow V2上线,支持更加简洁的工作流模式。

**由于工作流差异较大,需要手动重新构建。**

给应用和插件增加了 version 的字段,用于标识是旧工作流还是新工作流。当你更新 4.8 后,保存和新建的工作流均为新版,旧版工作流会有一个重置的弹窗提示。并且,如果是通过 API 和 分享链接 调用的工作流,仍可以正常使用,直到你下次保存它们。

## V4.8 更新说明

1. 重构 - 工作流
2. 新增 - 工作流 Debug 模式,可以调试单个节点或者逐步调试工作流。
3. 新增 - 定时执行应用。可轻松实现定时任务。
4. 新增 - 插件自定义输入优化,可以渲染输入组件。
5. 优化 - 工作流连线,可以四向连接,方便构建循环工作流。
6. 优化 - worker进程管理,并将计算 Token 任务分配给 worker 进程。
Loading

0 comments on commit 439c819

Please sign in to comment.