zeta2: Support experimental 1120-seedcoder model (#43411)

1. Introduce a common `PromptFormatter` trait
2. Let models define their generation params.
3. Add support for the experimental 1120-seedcoder prompt format


Release Notes:

- N/A
This commit is contained in:
Oleksiy Syvokon
2025-11-24 16:27:11 +00:00
committed by GitHub
parent e6b42a2be2
commit ea7568ceb3
4 changed files with 144 additions and 23 deletions
@@ -80,6 +80,8 @@ pub enum PromptFormat {
Minimal,
/// One-sentence instructions + FIM-like template
MinimalQwen,
/// No instructions, Qwen chat + Seed-Coder 1120 FIM-like template
SeedCoder1120,
}
impl PromptFormat {
@@ -108,6 +110,7 @@ impl std::fmt::Display for PromptFormat {
PromptFormat::OldTextNewText => write!(f, "Old Text / New Text"),
PromptFormat::Minimal => write!(f, "Minimal"),
PromptFormat::MinimalQwen => write!(f, "Minimal + Qwen FIM"),
PromptFormat::SeedCoder1120 => write!(f, "Seed-Coder 1120"),
}
}
}