Skip to content

Commit 0b59d32

Browse files
committed
Fix mypy issue
1 parent 0f5a3c0 commit 0b59d32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openai_messages_token_helper/message_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def normalize_content(content: Union[str, Iterable[ChatCompletionContentPartPara
2626
return unicodedata.normalize("NFC", content)
2727
else:
2828
for part in content:
29-
if "image_url" not in part:
29+
if "image_url" not in part and "text" in part:
3030
part["text"] = unicodedata.normalize("NFC", part["text"])
3131
return content
3232

0 commit comments

Comments
 (0)