agent: Disable thinking when using inline assistant/edit file tool (#34141)
This introduces a new field `thinking_allowed` on `LanguageModelRequest` which lets us control whether thinking should be enabled if the model supports it. We permit thinking in the Inline Assistant, Edit File tool and the Git Commit message generator, this should make generation faster when using a thinking model, e.g. `claude-sonnet-4-thinking` Release Notes: - N/A
This commit is contained in:
parent
96ff6d86a3
commit
41fe2a2ab4
21 changed files with 37 additions and 8 deletions
|
@ -570,6 +570,7 @@ impl SummaryIndex {
|
|||
tool_choice: None,
|
||||
stop: Vec::new(),
|
||||
temperature: None,
|
||||
thinking_allowed: true,
|
||||
};
|
||||
|
||||
let code_len = code.len();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue