[CHORE]: remove redundant-cast (#24807)
This commit is contained in:
parent
f11131f8b5
commit
ffba341258
26 changed files with 54 additions and 90 deletions
|
|
@ -87,7 +87,6 @@ class PromptMessageUtil:
|
|||
if isinstance(prompt_message.content, list):
|
||||
for content in prompt_message.content:
|
||||
if content.type == PromptMessageContentType.TEXT:
|
||||
content = cast(TextPromptMessageContent, content)
|
||||
text += content.data
|
||||
else:
|
||||
content = cast(ImagePromptMessageContent, content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue