forked from phoenix/litellm-mirror
add tool_calls attribute to Message and Delta classes in order to improve type-safety
This commit is contained in:
parent
fc5a845838
commit
20a796bacb
1 changed files with 4 additions and 0 deletions
|
@ -364,6 +364,8 @@ class ChatCompletionMessageToolCall(OpenAIObject):
|
||||||
|
|
||||||
|
|
||||||
class Message(OpenAIObject):
|
class Message(OpenAIObject):
|
||||||
|
tool_calls: Optional[List[ChatCompletionMessageToolCall]]
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
content="default",
|
content="default",
|
||||||
|
@ -408,6 +410,8 @@ class Message(OpenAIObject):
|
||||||
|
|
||||||
|
|
||||||
class Delta(OpenAIObject):
|
class Delta(OpenAIObject):
|
||||||
|
tool_calls: Optional[List[ChatCompletionDeltaToolCall]]
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
content=None,
|
content=None,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue