mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-26 02:07:28 +08:00
V4.14.9 dev (#6604)
* fix: image read and json error (Agent) (#6502) * fix: 1.image read 2.JSON parsing error * dataset cite and pause * perf: plancall second parse * add test --------- Co-authored-by: archer <545436317@qq.com> * master message * deploy --------- Co-authored-by: YeYuheng <57035043+YYH211@users.noreply.github.com>
This commit is contained in:
@@ -202,7 +202,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -235,7 +235,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -212,7 +212,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -193,7 +193,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -199,7 +199,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -177,7 +177,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -202,7 +202,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -235,7 +235,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -212,7 +212,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -193,7 +193,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -199,7 +199,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -177,7 +177,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ ${{vec.db}}
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -176,7 +176,6 @@ ${{vec.db}}
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -202,7 +202,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -235,7 +235,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -212,7 +212,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -193,7 +193,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -199,7 +199,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -177,7 +177,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -202,7 +202,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -235,7 +235,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -212,7 +212,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -193,7 +193,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -199,7 +199,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ services:
|
||||
- vectorDB
|
||||
restart: always
|
||||
environment:
|
||||
<<: [*x-share-db-config, *x-vec-config]
|
||||
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
|
||||
# ==================== 基础配置 ====================
|
||||
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
|
||||
FE_DOMAIN: http://localhost:3000
|
||||
@@ -177,7 +177,6 @@ services:
|
||||
AIPROXY_API_TOKEN: *x-aiproxy-token
|
||||
|
||||
# ==================== 日志与监控 ====================
|
||||
<<: [*x-log-config]
|
||||
# 传递给 OTLP 收集器的服务名称
|
||||
LOG_OTEL_SERVICE_NAME: fastgpt-client
|
||||
|
||||
|
||||
@@ -186,6 +186,18 @@ export const dispatchRunAgent = async (props: DispatchAgentModuleProps): Promise
|
||||
}
|
||||
})();
|
||||
|
||||
let masterMessages = (() => {
|
||||
if (!restoredMasterMessages) {
|
||||
return historiesMessages.concat(currentUserMessage ? [currentUserMessage] : []);
|
||||
} else if (planHistoryMessages?.length) {
|
||||
return restoredMasterMessages ?? historiesMessages;
|
||||
} else {
|
||||
return currentUserMessage
|
||||
? restoredMasterMessages.concat(currentUserMessage)
|
||||
: restoredMasterMessages;
|
||||
}
|
||||
})();
|
||||
|
||||
// Get sub apps
|
||||
const { completionTools: agentCompletionTools, subAppsMap: agentSubAppsMap } = await getSubapps(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user