support set role as 'tool' (#2075)

Co-authored-by: kavioyu <kavioyu@tencent.com>
This commit is contained in:
yukavio
2024-11-18 17:06:59 +08:00
committed by GitHub
parent 4af3f889fc
commit 2a3992b6f1

View File

@@ -236,7 +236,7 @@ ChatCompletionMessageContentPart = Union[
class ChatCompletionMessageGenericParam(BaseModel):
role: Literal["system", "assistant"]
role: Literal["system", "assistant", "tool"]
content: Union[str, List[ChatCompletionMessageContentTextPart]]