OCSxAI/config.example.yaml

35 lines
888 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.

# ===========================================
# OCS × AI 中间件 配置示例
# 复制本文件为 config.yaml,填入自己的 API Key 即用
# ===========================================
ai:
provider: deepseek
api_key: "sk-your-deepseek-api-key" # ← 替换为你的 API Key
# 文字题模型(deepseek-v4-pro 只支持文字,但推理更强)
model: "deepseek-v4-pro"
# 图片题模型:DeepSeek 目前只有 deepseek-flash 支持图片输入
# 留空则图片题退化为纯文字(图片只显示为 [图],答不出图片题)
vision_model: "deepseek-flash"
api_base: "https://api.deepseek.com/"
temperature: 0.1
max_tokens: 500
# 深度思考模式:true=先推演再输出(适合计算题),false=直接输出(更快)
thinking: true
timeout: 60
server:
host: "0.0.0.0"
port: 8777
api_key: ""
log_requests: true