Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion WriteBench/Features/Writing/WritingStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ enum WritingStage { case preparation, answering }
detail: "\(judges) · ChatGPT via Codex\n\(error.localizedDescription)\n尚未发起评卷,请在设置中检查连接。")
}
}
let synthesizer: (any ReportSynthesizer)? = configuration.synthesize && configuration.mode == .full ? (selectedDeepSeek ?? codex) : nil
var synthesizer: (any ReportSynthesizer)?
if configuration.synthesize, configuration.mode == .full {
if let selectedDeepSeek { synthesizer = selectedDeepSeek } else if let codex { synthesizer = codex }
}
return (ProviderRouter(configuration: configuration, deepSeek: selectedDeepSeek, codex: codex), synthesizer)
}
}
Expand Down
Loading