zeta: Use DTOs from zed_llm_client
crate (#24229)
This PR updates the `zeta` crate to use the predictive edit DTOs defined in the `zed_llm_client` crate. This way we aren't duplicating their definitions (and risk them going out of sync). Release Notes: - N/A
This commit is contained in:
parent
d6a2a0b04a
commit
b02baea9d2
5 changed files with 16 additions and 20 deletions
|
@ -33,18 +33,3 @@ pub struct PerformCompletionParams {
|
|||
pub model: String,
|
||||
pub provider_request: Box<serde_json::value::RawValue>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct PredictEditsParams {
|
||||
pub outline: Option<String>,
|
||||
pub input_events: String,
|
||||
pub input_excerpt: String,
|
||||
/// Whether the user provided consent for sampling this interaction.
|
||||
#[serde(default)]
|
||||
pub can_collect_data: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct PredictEditsResponse {
|
||||
pub output_excerpt: String,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue