From 8acb40af9581acc2124f32b71cb02ee2bbb6cda6 Mon Sep 17 00:00:00 2001 From: iff Date: Tue, 8 Apr 2025 20:09:59 +0200 Subject: [PATCH] chore: default parameter tweaks --- module-request-ai/src/requests.rs | 4 ++-- module-request-ai/templates/prompt.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module-request-ai/src/requests.rs b/module-request-ai/src/requests.rs index 336bc7a..86f73e3 100644 --- a/module-request-ai/src/requests.rs +++ b/module-request-ai/src/requests.rs @@ -223,7 +223,7 @@ impl Conf { if let Some(url) = option_env!("_DEF_PR_AI_URL") { url.to_string() } else { - "https://iff.envs.net/completions.py".to_string() + "https://iff.envs.net/stream-completions.py".to_string() } } }; @@ -237,7 +237,7 @@ impl Conf { if let Some(model) = option_env!("_DEF_PR_AI_MODEL") { model.to_string() } else { - "qwen-2.5-32b".to_string() + "{{ _PR_AI_MODEL }}".to_string() } } }; diff --git a/module-request-ai/templates/prompt.txt b/module-request-ai/templates/prompt.txt index 4442948..2f2857a 100644 --- a/module-request-ai/templates/prompt.txt +++ b/module-request-ai/templates/prompt.txt @@ -1,7 +1,7 @@ {{ 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 the commands in the section. Do not include any explanations or additional text. -No other text should be included outside the and sections. +Only provide commands in the section. Do not include any additional text. +No other text allowed outside the and sections. Your answer should be in the following format: ```