Skip to content

Commit f73e502

Browse files
fix: remove elif
1 parent c96df2b commit f73e502

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/uipath_langchain/chat/mapper.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def map_event(
188188
),
189189
)
190190

191-
elif message.content_blocks:
191+
if message.content_blocks:
192192
for block in message.content_blocks:
193193
block_type = block.get("type")
194194

@@ -273,10 +273,8 @@ def map_event(
273273
start=UiPathConversationContentPartStartEvent(
274274
mime_type="text/plain"
275275
),
276-
chunk=UiPathConversationContentPartChunkEvent(
277-
data=""
278-
),
279-
end=UiPathConversationContentPartEndEvent()
276+
chunk=UiPathConversationContentPartChunkEvent(data=""),
277+
end=UiPathConversationContentPartEndEvent(),
280278
),
281279
tool_call=UiPathConversationToolCallEvent(
282280
tool_call_id=message.tool_call_id,
@@ -290,7 +288,7 @@ def map_event(
290288
output=UiPathInlineValue(inline=content_value),
291289
),
292290
),
293-
end=UiPathConversationMessageEndEvent()
291+
end=UiPathConversationMessageEndEvent(),
294292
)
295293

296294
# Clean up the mapping after use

0 commit comments

Comments
 (0)