feat: add ask user question

This commit is contained in:
voocel
2026-03-09 19:52:43 +08:00
parent 75bdda1fe3
commit ef55c89e9d
13 changed files with 868 additions and 83 deletions

View File

@@ -14,8 +14,7 @@ type Config struct {
ModelName string // LLM 模型名
APIKey string // API Key
BaseURL string // API Base URL可选
MaxChapters int // 最大章节数
Style string // 写作风格default/suspense/fantasy/romance
Style string // 写作风格default/suspense/fantasy/romance
}
// Prompts 嵌入的提示词。
@@ -71,7 +70,4 @@ func (c *Config) FillDefaults() {
if c.Style == "" {
c.Style = "default"
}
if c.MaxChapters <= 0 {
c.MaxChapters = 3
}
}