修复用户输入超时问题: - 将默认交互超时从10秒延长到60秒,给用户充足输入时间 - 避免用户在第9秒开始输入但来不及完成的问题 - 更新timeout_prompt和timeout_choice_prompt默认参数 - 在config.yaml添加interaction_timeout配置项 - 更新settings.py中的默认配置值 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
# BidMaster-CLI 默认配置
|
||
|
||
# LLM设置
|
||
llm:
|
||
# 提供商: openai, azure_openai, anthropic, zhipu, qwen, deepseek, ollama
|
||
llm_provider: "openai"
|
||
model_name: "gpt-4"
|
||
temperature: 0.1
|
||
max_tokens: 4000
|
||
|
||
# Azure OpenAI 特定配置(使用azure_openai时需要)
|
||
# azure_api_version: "2024-02-15-preview"
|
||
# azure_deployment: "your-deployment-name"
|
||
|
||
# Ollama 配置(使用ollama时需要)
|
||
# ollama_host: "http://localhost:11434"
|
||
|
||
# 向量数据库设置
|
||
vector_db:
|
||
persist_directory: "./data/kb"
|
||
collection_name: "bidmaster_kb"
|
||
|
||
# 嵌入模型设置
|
||
embedding:
|
||
model_name: "text-embedding-3-small"
|
||
chunk_size: 1000
|
||
chunk_overlap: 200
|
||
|
||
# 文档处理设置
|
||
document:
|
||
max_file_size: 50MB
|
||
supported_formats: [".pdf", ".docx", ".txt", ".md"]
|
||
|
||
# 性能设置
|
||
performance:
|
||
max_workers: 4
|
||
timeout: 300
|
||
|
||
# 交互设置
|
||
interaction:
|
||
interaction_timeout: 60 # 用户输入超时时间(秒)
|
||
|
||
# 日志设置
|
||
logging:
|
||
level: INFO
|
||
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s" |