support set role as 'tool' (#2075)
Co-authored-by: kavioyu <kavioyu@tencent.com>
This commit is contained in:
1 parent
4af3f889fc
commit
2a3992b6f1
1 file changed
+1
-1
@@ -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