Skip to content

Commit d9e163c

Browse files
authored
Develop deer flow (#85)
* fix: deer-flow支持从datamate获取搜索引擎
1 parent df853a5 commit d9e163c

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

deployment/docker/deer-flow/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
- .env
77
volumes:
88
- ./conf.yaml:/app/conf.yaml:ro
9+
- deer-flow-log-volume:/var/log/deer-flow
910
restart: unless-stopped
1011
networks:
1112
- datamate
@@ -21,6 +22,10 @@ services:
2122
networks:
2223
- datamate
2324

25+
volumes:
26+
deer-flow-log-volume:
27+
name: deer-flow-log-volume
28+
2429
networks:
2530
datamate:
2631
driver: bridge

deployment/helm/deer-flow/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,16 @@ backend:
2424
- name: deer-flow-conf
2525
secret:
2626
secretName: deer-flow-conf
27+
- name: log-volume
28+
persistentVolumeClaim:
29+
claimName: datamate-log-pvc
2730
volumeMounts:
2831
- name: deer-flow-conf
2932
mountPath: /app/conf.yaml
3033
subPath: conf.yaml
34+
- name: log-volume
35+
mountPath: /var/log/deer-flow
36+
subPath: deer-flow
3137

3238
frontend:
3339
envFrom:

runtime/deer-flow/conf.yaml.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
# - Set `verify_ssl` to `false` if your LLM server uses self-signed certificates
77
# - A restart is required every time you change the `conf.yaml` file.
88

9-
BASIC_MODEL:
10-
base_url: https://ark.cn-beijing.volces.com/api/v3
11-
model: "doubao-1-5-pro-32k-250115"
12-
api_key: xxxx
9+
# BASIC_MODEL:
10+
# base_url: https://ark.cn-beijing.volces.com/api/v3
11+
# model: "doubao-1-5-pro-32k-250115"
12+
# api_key: xxxx
1313
# max_retries: 3 # Maximum number of retries for LLM calls
1414
# verify_ssl: false # Uncomment this line to disable SSL certificate verification for self-signed certificates
1515

scripts/db/setting-management-init.sql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ CREATE TABLE IF NOT EXISTS t_sys_param
3737
) ENGINE = InnoDB
3838
DEFAULT CHARSET = utf8mb4 COMMENT ='设置管理表';
3939

40-
insert into t_sys_param (id, param_key, param_value, param_type, option_list, description, is_built_in, can_modify,
40+
insert ignore into t_sys_param (id, param_key, param_value, param_type, option_list, description, is_built_in, can_modify,
4141
is_enabled, created_by, updated_by)
42-
values ('1', 'sys.knowledge.base.count', '200', 'integer', '', '知识库最大数量', 1, 1, 1, 'system', 'system');
42+
values ('1', 'sys.knowledge.base.count', '200', 'integer', '', '知识库最大数量', 1, 1, 1, 'system', 'system'),
43+
('2', 'SEARCH_API', 'tavily', 'string', '', 'deer-flow使用的搜索引擎', 1, 1, 1, 'system', 'system'),
44+
('3', 'TAVILY_API_KEY', 'tvly-dev-xxx', 'string', '', 'deer-flow使用的搜索引擎所需的apiKey', 1, 1, 1, 'system', 'system'),
45+
('4', 'BRAVE_SEARCH_API_KEY', 'api-xxx', 'string', '', 'deer-flow使用的搜索引擎所需的apiKey', 1, 1, 1, 'system', 'system'),
46+
('5', 'JINA_API_KEY', '', 'string', '', 'deer-flow使用的JINA搜索引擎所需的apiKey', 1, 1, 1, 'system', 'system');

0 commit comments

Comments
 (0)