hyf-backend/webIOs/configs/settings.yaml

41 lines
995 B
YAML
Raw 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.

# Chat Agent Configuration
app:
name: "TH Agenter"
version: "0.2.0"
debug: true
environment: "development"
host: "0.0.0.0"
port: 8000
# File Configuration
file:
upload_dir: "./data/uploads"
max_size: 10485760 # 10MB
allowed_extensions: [".txt", ".pdf", ".docx", ".md"]
chunk_size: 1000
chunk_overlap: 200
semantic_splitter_enabled: true # 启用语义分割器
# Storage Configuration
storage:
storage_type: "local" # local or s3
upload_directory: "./data/uploads"
# S3 Configuration
s3_bucket_name: "chat-agent-files"
aws_access_key_id: null
aws_secret_access_key: null
aws_region: "us-east-1"
s3_endpoint_url: null
# CORS Configuration
cors:
allowed_origins: ["*"]
allowed_methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
allowed_headers: ["*"]
# Chat Configuration
chat:
max_history_length: 10
system_prompt: "你是一个有用的AI助手请根据提供的上下文信息回答用户的问题。"
max_response_tokens: 1000