mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
fix: trim markdown json identifier
This commit is contained in:
parent
60ba16a97c
commit
b88ce2b7bc
1 changed files with 1 additions and 0 deletions
|
|
@ -166,6 +166,7 @@ The command `{last_command}` returns the following error message: `{error_msg}`.
|
|||
str?;
|
||||
str.expect("AI module: Failed to get content from response")
|
||||
.trim_start_matches("```")
|
||||
.trim_start_matches("json")
|
||||
.trim_end_matches("```")
|
||||
};
|
||||
let json = serde_json::from_str(str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue