zeta2: Update prompts to match training more closely (#40383)

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga
2025-10-16 14:13:19 +00:00
committed by GitHub
parent ae25baad02
commit fba7f4d8cc
6 changed files with 116 additions and 52 deletions
@@ -47,13 +47,13 @@ pub struct PredictEditsRequest {
pub enum PromptFormat {
MarkedExcerpt,
LabeledSections,
NumberedLines,
NumLinesUniDiff,
/// Prompt format intended for use via zeta_cli
OnlySnippets,
}
impl PromptFormat {
pub const DEFAULT: PromptFormat = PromptFormat::NumberedLines;
pub const DEFAULT: PromptFormat = PromptFormat::NumLinesUniDiff;
}
impl Default for PromptFormat {
@@ -74,7 +74,7 @@ impl std::fmt::Display for PromptFormat {
PromptFormat::MarkedExcerpt => write!(f, "Marked Excerpt"),
PromptFormat::LabeledSections => write!(f, "Labeled Sections"),
PromptFormat::OnlySnippets => write!(f, "Only Snippets"),
PromptFormat::NumberedLines => write!(f, "Numbered Lines"),
PromptFormat::NumLinesUniDiff => write!(f, "Numbered Lines / Unified Diff"),
}
}
}