Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

fix: Typo in base message

Wendongcd6770741695
diff --git a/camel/messages/base.py b/camel/messages/base.py
index 70bce9415..f46c07603 100644
--- a/camel/messages/base.py
+++ b/camel/messages/base.py
@@ -416,8 +416,8 @@ class BaseMessage:
Returns:
OpenAIUserMessage: The converted :obj:`OpenAIUserMessage` object.
"""
- hybird_content: List[Any] = []
- hybird_content.append(
+ hybrid_content: List[Any] = []
+ hybrid_content.append(
{
"type": "text",
"text": self.content,
@@ -445,7 +445,7 @@ class BaseMessage:
"utf-8"
)
image_prefix = f"data:image/{image_type};base64,"
- hybird_content.append(
+ hybrid_content.append(
{
"type": "image_url",
"image_url": {
@@ -504,12 +504,12 @@ class BaseMessage:
},
}
- hybird_content.append(item)
+ hybrid_content.append(item)
- if len(hybird_content) > 1:
+ if len(hybrid_content) > 1:
return {
"role": "user",
- "content": hybird_content,
+ "content": hybrid_content,
}
# This return just for str message
else: