fix: prompt typo

This commit is contained in:
iff 2024-12-13 12:22:09 +01:00
parent 01c541e2bb
commit cc9659e0aa

View file

@ -68,7 +68,7 @@ pub fn ai_suggestion(last_command: &str, error_msg: &str) -> Option<AISuggest> {
let ai_prompt = format!( let ai_prompt = format!(
r#" r#"
The command `{last_command}` returns the following error message: `{error_msg}`. Provide possible commands to fix it. Answer in the following excact JSON template without any extra text: The command `{last_command}` returns the following error message: `{error_msg}`. Provide possible commands to fix it. Answer in the following exact JSON template without any extra text:
``` ```
{{"commands":["command 1", "command 2"],"note":"why they may fix the error{set_locale}"}} {{"commands":["command 1", "command 2"],"note":"why they may fix the error{set_locale}"}}
``` ```