{"repo": "blueskyxn/deepai", "files": {"config-example.yaml": {"940a36323453473cc493d6da8bec7ea66111daa5": {"t": 1785768173.332873, "n": 2327, "h": "271194389e836c20", "c": "# 思考链服务配置\nthinking_services:\n - id: 1 # 建议按照顺序指定 ID,以便日后扩展或记录(ID 本身不会参与逻辑计算)\n name: \"modelscope-deepseek-thinking\" # 随便取一个名字\n mode: \"standard\" # 模式,可设置为 \"standard\" 或 \"full\"。标准模式:只使用 reasoning_content 字段;完全模式:使用 reasoning_content + content 字段(完全模式不支持显示思考链)。\n model: \"deepseek-ai/DeepSeek-R1-Distill-Qwen-32B\" # 模型配置,可使用蒸馏模型,具体模型名称请咨询服务商\n base_url: \"https://api-inference.modelscope.cn\"\n api_path: \"/v1/chat/completions\" # 与 base_url 拼接,遵循 OpenAI 标准\n api_key: \"sk-xxxxxxxxxxxxxxxx\"\n timeout: 600 # 请求超时时间,单位:秒\n weight: 100 # 加权随机的比例权重,数值越高,被选中的概率越大\n proxy: \"\" # 可选代理设置,留空则不使用代理(支持 HTTP/SOCKS5)\n reasoning_effort: \"high\" # 推理令牌数量,选项:\"low\"、\"medium\"、\"high\",可留空\n reasoning_format: \"parsed\" # 推理过程格式,选项:\"parsed\"、\"raw\"、\"hidden\",可留空\n temperature: 0.8 # 温度参数(覆盖默认值 0.7),可选\n force_stop_deep_thinking: false # 是否在标准模式下遇到不含有效 reasoning_content 时强制停止思考链\n\n - id: 2\n name: \"tencent-deepseek-thinking\"\n mode: \"full\" # 完全模式:收集 reasoning_content 与 content 全部内容,且不显示思考链\n model: \"deepseek-r1\" # 模型配置\n base_url: \"https://api.lkeap.cloud.tencent.com\"\n api_path: \"/v1/chat/completions\"\n api_key: \"sk-xxxxxxxxxxxxxxxx\"\n timeout: 600\n weight: 50\n proxy: \"http://127.0.0.1:7890\" # HTTP代理示例\n reasoning_effort: \"medium\"\n force_stop_deep_thinking: true\n\n# API通道配置\nchannels:\n \"1\": # 建议按照顺序指定 ID\n name: \"modelscope-channel\"\n base_url: \"https://api-inference.modelscope.cn\"\n api_path: \"/v1/chat/completions\"\n timeout: 600\n proxy: \"\" # 不使用代理\n \n \"2\":\n name: \"openai-channel\"\n base_url: \"https://api.openai.com\"\n api_path: \"/v1/chat/completions\"\n timeout: 600\n proxy: \"socks5://127.0.0.1:7890\" # SOCKS5代理示例\n\n# 全局配置\nglobal:\n log:\n level: \"info\" # 日志级别:可选 debug, info, warn, error\n format: \"json\" # 日志格式:可选 text, json\n output: \"file\" # 日志输出:可选 console, file\n file_path: \"./logs/deepai.log\"\n debug:\n enabled: true # 是否启用调试日志\n print_request: true # 打印请求内容\n print_response: true # 打印响应内容\n max_content_length: 1000 # 内容打印最大长度,避免日志过大\n\n server:\n port: 8888\n host: \"0.0.0.0\"\n read_timeout: 600\n write_timeout: 600\n idle_timeout: 600\n"}}}}