mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Improve variable consistency in prompt rendering for pr generate labels flow
This commit is contained in:
parent
bd5c19ee05
commit
f9de8f283b
1 changed files with 2 additions and 2 deletions
|
|
@ -137,8 +137,8 @@ class PRGenerateLabels:
|
||||||
environment = Environment(undefined=StrictUndefined)
|
environment = Environment(undefined=StrictUndefined)
|
||||||
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().pr_custom_labels_prompt.system).render(variables)
|
system_prompt = environment.from_string(get_settings().pr_custom_labels_prompt.system).render(self.variables)
|
||||||
user_prompt = environment.from_string(get_settings().pr_custom_labels_prompt.user).render(variables)
|
user_prompt = environment.from_string(get_settings().pr_custom_labels_prompt.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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue