support set role as 'tool' (#2075)

Co-authored-by: kavioyu <kavioyu@tencent.com>
This commit is contained in:
yukavio
2024-11-18 01:06:59 -08:00
committed by GitHub
co-authored by kavioyu
parent 4af3f889fc
commit 2a3992b6f1
+1 -1
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]]