Avoid empty schema in copilot dummy tool (#30178)
Copilot chat still returns a 400 if the dummy tool uses the `{}` schema. This is a follow-up to https://github.com/zed-industries/zed/pull/30007. Release Notes: - Fixed a bug where agent edits would fail when using GitHub Copilot Chat. Co-authored-by: Agus Zubiaga <hi@aguz.me>
This commit is contained in:
parent
0d726603ce
commit
3c128ef83f
1 changed files with 3 additions and 1 deletions
|
@ -526,7 +526,9 @@ impl CopilotChatLanguageModel {
|
||||||
function: copilot::copilot_chat::Function {
|
function: copilot::copilot_chat::Function {
|
||||||
name: "noop".to_string(),
|
name: "noop".to_string(),
|
||||||
description: "No operation".to_string(),
|
description: "No operation".to_string(),
|
||||||
parameters: serde_json::json!({}),
|
parameters: serde_json::json!({
|
||||||
|
"type": "object"
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue