mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
parent
d2b31b47b6
commit
79c69dc622
2 changed files with 4 additions and 2 deletions
|
|
@ -219,7 +219,9 @@ impl Sub for Line {
|
|||
pub struct RawCompletionRequest {
|
||||
pub model: String,
|
||||
pub prompt: String,
|
||||
pub max_tokens: u32,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub max_tokens: Option<u32>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub temperature: Option<f32>,
|
||||
pub stop: Vec<Cow<'static, str>>,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ pub fn request_prediction_with_zeta2(
|
|||
prompt,
|
||||
temperature: None,
|
||||
stop: vec![],
|
||||
max_tokens: 1024,
|
||||
max_tokens: Some(2048),
|
||||
};
|
||||
|
||||
log::trace!("Sending edit prediction request");
|
||||
|
|
|
|||
Loading…
Reference in a new issue