Skip to content

Commit 2a2bdb7

Browse files
authored
Merge pull request #414 from BhAem/fix/guardrail
fix: allow streaming in guardrail response
2 parents 549d486 + 429eb65 commit 2a2bdb7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

veadk/tools/builtin_tools/llm_shield.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ def before_model_callback(
266266
content=types.Content(
267267
role="model",
268268
parts=[types.Part(text=response)],
269-
)
269+
),
270+
partial=True,
270271
)
271272
return None
272273

@@ -313,7 +314,8 @@ def after_model_callback(
313314
content=types.Content(
314315
role="model",
315316
parts=[types.Part(text=response)],
316-
)
317+
),
318+
partial=True,
317319
)
318320
return None
319321

0 commit comments

Comments
 (0)