mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
chore: prompt tweaks
This commit is contained in:
parent
b2a01a97db
commit
2056c679f4
2 changed files with 7 additions and 7 deletions
|
|
@ -194,8 +194,8 @@ pub async fn ai_suggestion(last_command: &str, error_msg: &str) {
|
|||
.trim()
|
||||
.trim_end_matches("```")
|
||||
.trim()
|
||||
.trim_start_matches("<suggestions>")
|
||||
.trim_end_matches("</suggestions>")
|
||||
.trim_start_matches("<suggest>")
|
||||
.trim_end_matches("</suggest>")
|
||||
.replace("<br>", "<_PR_BR>");
|
||||
|
||||
println!("{}", suggestions);
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
{{ additional_prompt }}
|
||||
`{{ last_command }}` returns the following error message: `{{ error_msg }}`. Guess the intention of the command and provide possible commands to solve the issue.
|
||||
Only provide commands in the <suggestions> section. Do not include any additional text.
|
||||
No other text allowed outside the <note> and <suggestions> sections.
|
||||
`{{ last_command }}` returns the following message: `{{ error_msg }}`. Guess the intention of the command and provide possible commands to solve the issue.
|
||||
Only provide commands in the <suggest> section. Do not include any additional text.
|
||||
No other text allowed outside the <note> and <suggest> sections.
|
||||
Your answer should be in the following format:
|
||||
```
|
||||
<note>
|
||||
Anything other than the commands should be included in this section. Explain why your suggestions can be helpful{{ set_locale }}.
|
||||
</note>
|
||||
<suggestions>
|
||||
<suggest>
|
||||
command
|
||||
<br>
|
||||
command
|
||||
</suggestions>
|
||||
</suggest>
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue