Skip to content

Commit

Permalink
fix StrEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
chyroc committed Sep 24, 2024
1 parent 8468f18 commit 59e4216
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cozepy/conversation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from enum import StrEnum, Enum
from enum import Enum
from typing import Dict, List, Optional

from .auth import Auth
Expand All @@ -13,7 +13,7 @@ class MessageRole(str, Enum):
assistant = "assistant"


class MessageType(StrEnum):
class MessageType(str, Enum):
# User input content.
# 用户输入内容。
question = "question"
Expand All @@ -37,7 +37,7 @@ class MessageType(StrEnum):
verbose = "verbose"


class MessageContentType(StrEnum):
class MessageContentType(str, Enum):
# Text.
# 文本。
text = "text"
Expand All @@ -49,7 +49,7 @@ class MessageContentType(StrEnum):
card = "card"


class MessageObjectStringType(StrEnum):
class MessageObjectStringType(str, Enum):
"""
The content type of the multimodal message.
"""
Expand Down

0 comments on commit 59e4216

Please sign in to comment.