Files
MemeMeow/config/api_config.example.yaml
Infstellar b34670b616 docs
2025-05-27 20:32:52 +08:00

22 lines
703 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
api:
protected_mode: False
allowed_endpoints:
- "/search"
- "/libs_manifest"
- "/"
rate_limit:
enabled: False
requests: 10 # 每分钟最大请求数
window: 60 # 时间窗口(秒)
storage: "memory" # 存储方式(memory/redis)
generate_cache: False
mode: "api" # 模式(api/local)
api_mode_config:
default_api_key: "your-key-here"
default_base_url: "https://api.example.com"
model: "bge-m3"
urls:
return_type: "rel_path" # 绝对路径,相对路径(rel_path)(相对于项目目录!),哈希值(sha256)(适用于外部图床)
path_replace_regex: ""
url_prefix: ""
url_postfix: ""