Chore: PromptMessage is not an abstract base class (#15965)

This commit is contained in:
Yongtao Huang
2025-03-18 10:57:52 +08:00
committed by GitHub
parent 63ea6f1ecf
commit 963b6f628a
4 changed files with 3 additions and 6 deletions

View File

@@ -493,7 +493,7 @@ If inputting a combination of text and images, the images need to be constructed
The base class for all Role message bodies, used only for parameter declaration and cannot be initialized.
```python
class PromptMessage(ABC, BaseModel):
class PromptMessage(BaseModel):
"""
Model class for prompt message.
"""

View File

@@ -533,7 +533,7 @@ class ImagePromptMessageContent(PromptMessageContent):
所有 Role 消息体的基类,仅作为参数声明用,不可初始化。
```python
class PromptMessage(ABC, BaseModel):
class PromptMessage(BaseModel):
"""
Model class for prompt message.
"""