Skip to content

Commit cd67707

Browse files
committed
fix: Typo in base message
1 parent 69e4281 commit cd67707

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

camel/messages/base.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ def to_openai_user_message(self) -> OpenAIUserMessage:
416416
Returns:
417417
OpenAIUserMessage: The converted :obj:`OpenAIUserMessage` object.
418418
"""
419-
hybird_content: List[Any] = []
420-
hybird_content.append(
419+
hybrid_content: List[Any] = []
420+
hybrid_content.append(
421421
{
422422
"type": "text",
423423
"text": self.content,
@@ -445,7 +445,7 @@ def to_openai_user_message(self) -> OpenAIUserMessage:
445445
"utf-8"
446446
)
447447
image_prefix = f"data:image/{image_type};base64,"
448-
hybird_content.append(
448+
hybrid_content.append(
449449
{
450450
"type": "image_url",
451451
"image_url": {
@@ -504,12 +504,12 @@ def to_openai_user_message(self) -> OpenAIUserMessage:
504504
},
505505
}
506506

507-
hybird_content.append(item)
507+
hybrid_content.append(item)
508508

509-
if len(hybird_content) > 1:
509+
if len(hybrid_content) > 1:
510510
return {
511511
"role": "user",
512-
"content": hybird_content,
512+
"content": hybrid_content,
513513
}
514514
# This return just for str message
515515
else:

0 commit comments

Comments
 (0)