File size: 1,966 Bytes
72f34ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# 内部转发请求配置,0值为无超时 单位为秒
# connTimeout: 用户连接超时
# idleConnTimeout: 空闲连接超时
# responseHeaderTimeout: 响应头超时
server-conn:
  connTimeout: 0
  idleConnTimeout: 0
  responseHeaderTimeout: 0

white-addr:
#  - '127.0.0.1'
#  - 'xxx.xxx.xxx.xxx'

# 开启特殊标记增强
flags: true

# 图片访问
domain: "https://deeme-adapter.hf.space"

# 内调llm,用于绘图时文本转tags
llm:
  baseUrl: "http://127.0.0.1:8081"
  model: "command-r-plus"
  token: "kUbPWLagtquZkTAp9y3c4aFqDMRMmLMLuiXZNSVs"

# lmsys fn、 trigger
lmsys: [49 , 109]

# hf 绘图接口配置化
hf:
#  dalle-4k: https://mukaist-dalle-4k.hf.space
#  animagine-xl-3.1: https://cagliostrolab-animagine-xl-3-1.hf.space
#  dalle-3-xl: https://ehristoforu-dalle-3-xl-lora-v2.hf.space

# gemini 自定义安全设置
google:
#  safes:
#    - category: HARM_CATEGORY_HARASSMENT
#      threshold: BLOCK_NONE

bing:
  baseUrl: "https://edgeservices.bing.com/edgesvc"

serverless:
  enabled: false
  disabled-gpu: true
  # 当无法找到指定的浏览器时可以在此配置路径
  # execPath: /usr/bin/microsoft-edge
  headless: new

interpreter:
  baseUrl: http://127.0.0.1:8000
  echoCode: true
  ws: true

custom-llm:
  baseUrl: http://127.0.0.1:8080

# toolCall 默认配置化; 在 flags 关闭时也可用
toolCall:
  id: -1
  enabled: false
  tasks: false

# 图片放大,domain需要公网可访问的地址
# key请到https://bigjpg.com获取,每月30次免费
# 目前注册没有限制,可配置多个key轮询
#magnify:
#  - "xxx"

######################
# router
port: 7860
timeout: 300
mappers:
  - addr: http://127.0.0.1:8444
    routes:
      - path: ^/clewd/(.+)
        rewrite: /$1
  - addr: http://127.0.0.1:8081
    routes:
      - path: ^/proxies/(.+)
        rewrite: /$1
      - path: ^/file/(.+)
        rewrite: /file/$1