Develop deer flow (#85)

* fix: deer-flow支持从datamate获取搜索引擎
This commit is contained in:
hhhhsc701
2025-11-14 17:36:55 +08:00
committed by GitHub
parent df853a5177
commit d9e163c163
4 changed files with 21 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ services:
- .env
volumes:
- ./conf.yaml:/app/conf.yaml:ro
- deer-flow-log-volume:/var/log/deer-flow
restart: unless-stopped
networks:
- datamate
@@ -21,6 +22,10 @@ services:
networks:
- datamate
volumes:
deer-flow-log-volume:
name: deer-flow-log-volume
networks:
datamate:
driver: bridge

View File

@@ -24,10 +24,16 @@ backend:
- name: deer-flow-conf
secret:
secretName: deer-flow-conf
- name: log-volume
persistentVolumeClaim:
claimName: datamate-log-pvc
volumeMounts:
- name: deer-flow-conf
mountPath: /app/conf.yaml
subPath: conf.yaml
- name: log-volume
mountPath: /var/log/deer-flow
subPath: deer-flow
frontend:
envFrom:

View File

@@ -6,10 +6,10 @@
# - Set `verify_ssl` to `false` if your LLM server uses self-signed certificates
# - A restart is required every time you change the `conf.yaml` file.
BASIC_MODEL:
base_url: https://ark.cn-beijing.volces.com/api/v3
model: "doubao-1-5-pro-32k-250115"
api_key: xxxx
# BASIC_MODEL:
# base_url: https://ark.cn-beijing.volces.com/api/v3
# model: "doubao-1-5-pro-32k-250115"
# api_key: xxxx
# max_retries: 3 # Maximum number of retries for LLM calls
# verify_ssl: false # Uncomment this line to disable SSL certificate verification for self-signed certificates

View File

@@ -37,6 +37,10 @@ CREATE TABLE IF NOT EXISTS t_sys_param
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='设置管理表';
insert into t_sys_param (id, param_key, param_value, param_type, option_list, description, is_built_in, can_modify,
insert ignore into t_sys_param (id, param_key, param_value, param_type, option_list, description, is_built_in, can_modify,
is_enabled, created_by, updated_by)
values ('1', 'sys.knowledge.base.count', '200', 'integer', '', '知识库最大数量', 1, 1, 1, 'system', 'system');
values ('1', 'sys.knowledge.base.count', '200', 'integer', '', '知识库最大数量', 1, 1, 1, 'system', 'system'),
('2', 'SEARCH_API', 'tavily', 'string', '', 'deer-flow使用的搜索引擎', 1, 1, 1, 'system', 'system'),
('3', 'TAVILY_API_KEY', 'tvly-dev-xxx', 'string', '', 'deer-flow使用的搜索引擎所需的apiKey', 1, 1, 1, 'system', 'system'),
('4', 'BRAVE_SEARCH_API_KEY', 'api-xxx', 'string', '', 'deer-flow使用的搜索引擎所需的apiKey', 1, 1, 1, 'system', 'system'),
('5', 'JINA_API_KEY', '', 'string', '', 'deer-flow使用的JINA搜索引擎所需的apiKey', 1, 1, 1, 'system', 'system');