support set role as 'tool' (#2075)
Co-authored-by: kavioyu <kavioyu@tencent.com>
This commit is contained in:
@@ -236,7 +236,7 @@ ChatCompletionMessageContentPart = Union[
|
||||
|
||||
|
||||
class ChatCompletionMessageGenericParam(BaseModel):
|
||||
role: Literal["system", "assistant"]
|
||||
role: Literal["system", "assistant", "tool"]
|
||||
content: Union[str, List[ChatCompletionMessageContentTextPart]]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user