mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
fix: render prompt template for variable extraction
This commit is contained in:
parent
87c8c5e2c8
commit
8b3dc02722
4 changed files with 48 additions and 14 deletions
|
|
@ -341,7 +341,12 @@ class PipecatEngine:
|
|||
parent_context = self._get_otel_context()
|
||||
|
||||
extraction_prompt = self._format_prompt(node.extraction_prompt)
|
||||
extraction_variables = node.extraction_variables
|
||||
extraction_variables = [
|
||||
v.model_copy(update={"prompt": self._format_prompt(v.prompt)})
|
||||
if v.prompt
|
||||
else v
|
||||
for v in node.extraction_variables
|
||||
]
|
||||
|
||||
async def _do_extraction():
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue