Fix bad cd
sometimes used by BashTool
and set edit model temperature to 0 (#26656)
Release Notes: - N/A
This commit is contained in:
parent
70c973f6c3
commit
4ecd1b5174
2 changed files with 4 additions and 1 deletions
|
@ -11,6 +11,9 @@ use util::command::new_smol_command;
|
||||||
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
|
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
|
||||||
pub struct BashToolInput {
|
pub struct BashToolInput {
|
||||||
/// The bash command to execute as a one-liner.
|
/// The bash command to execute as a one-liner.
|
||||||
|
///
|
||||||
|
/// WARNING: you must not `cd` into the working directory, as that's already
|
||||||
|
/// taken care of automatically. Doing so will cause the command to fail!
|
||||||
command: String,
|
command: String,
|
||||||
/// Working directory for the command. This must be one of the root directories of the project.
|
/// Working directory for the command. This must be one of the root directories of the project.
|
||||||
working_directory: String,
|
working_directory: String,
|
||||||
|
|
|
@ -151,7 +151,7 @@ impl EditFilesTool {
|
||||||
messages,
|
messages,
|
||||||
tools: vec![],
|
tools: vec![],
|
||||||
stop: vec![],
|
stop: vec![],
|
||||||
temperature: None,
|
temperature: Some(0.0),
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut parser = EditActionParser::new();
|
let mut parser = EditActionParser::new();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue