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
+2
View File
@@ -230,6 +230,7 @@ enum PromptFormat {
OldTextNewText,
Minimal,
MinimalQwen,
SeedCoder1120,
}
impl Into<predict_edits_v3::PromptFormat> for PromptFormat {
@@ -242,6 +243,7 @@ impl Into<predict_edits_v3::PromptFormat> for PromptFormat {
Self::OldTextNewText => predict_edits_v3::PromptFormat::OldTextNewText,
Self::Minimal => predict_edits_v3::PromptFormat::Minimal,
Self::MinimalQwen => predict_edits_v3::PromptFormat::MinimalQwen,
Self::SeedCoder1120 => predict_edits_v3::PromptFormat::SeedCoder1120,
}
}
}