We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f5a3c0 commit 0b59d32Copy full SHA for 0b59d32
src/openai_messages_token_helper/message_builder.py
@@ -26,7 +26,7 @@ def normalize_content(content: Union[str, Iterable[ChatCompletionContentPartPara
26
return unicodedata.normalize("NFC", content)
27
else:
28
for part in content:
29
- if "image_url" not in part:
+ if "image_url" not in part and "text" in part:
30
part["text"] = unicodedata.normalize("NFC", part["text"])
31
return content
32
0 commit comments