Skip to content

Commit d032b99

Browse files
committed
Disable chat metric report when async exeuction.
1 parent 0ed82e1 commit d032b99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/flink_agents/plan/actions/chat_model_action.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ async def chat(
192192
for attempt in range(num_retries + 1):
193193
try:
194194
if chat_async:
195+
# TODO: Support report metrics in async thread
196+
chat_model.set_metric_group(None)
195197
response = await ctx.durable_execute_async(chat_model.chat, messages)
196198
else:
197199
response = chat_model.chat(messages)

0 commit comments

Comments
 (0)