mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 04:40:38 +08:00
Improve variable consistency in prompt rendering for pr description flow
This commit is contained in:
@ -348,8 +348,8 @@ extra_file_yaml =
|
|||||||
set_custom_labels(variables, self.git_provider)
|
set_custom_labels(variables, self.git_provider)
|
||||||
self.variables = variables
|
self.variables = variables
|
||||||
|
|
||||||
system_prompt = environment.from_string(get_settings().get(prompt, {}).get("system", "")).render(variables)
|
system_prompt = environment.from_string(get_settings().get(prompt, {}).get("system", "")).render(self.variables)
|
||||||
user_prompt = environment.from_string(get_settings().get(prompt, {}).get("user", "")).render(variables)
|
user_prompt = environment.from_string(get_settings().get(prompt, {}).get("user", "")).render(self.variables)
|
||||||
|
|
||||||
response, finish_reason = await self.ai_handler.chat_completion(
|
response, finish_reason = await self.ai_handler.chat_completion(
|
||||||
model=model,
|
model=model,
|
||||||
|
Reference in New Issue
Block a user