Unverified Commit 2a3992b6 authored by yukavio's avatar yukavio Committed by GitHub
Browse files

support set role as 'tool' (#2075)


Co-authored-by: default avatarkavioyu <kavioyu@tencent.com>
parent 4af3f889
...@@ -236,7 +236,7 @@ ChatCompletionMessageContentPart = Union[ ...@@ -236,7 +236,7 @@ ChatCompletionMessageContentPart = Union[
class ChatCompletionMessageGenericParam(BaseModel): class ChatCompletionMessageGenericParam(BaseModel):
role: Literal["system", "assistant"] role: Literal["system", "assistant", "tool"]
content: Union[str, List[ChatCompletionMessageContentTextPart]] content: Union[str, List[ChatCompletionMessageContentTextPart]]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment