mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-07 20:22:41 +00:00
add tool_calls attribute to Message and Delta classes in order to improve type-safety
This commit is contained in:
@@ -364,6 +364,8 @@ class ChatCompletionMessageToolCall(OpenAIObject):
|
||||
|
||||
|
||||
class Message(OpenAIObject):
|
||||
tool_calls: Optional[List[ChatCompletionMessageToolCall]]
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
content="default",
|
||||
@@ -408,6 +410,8 @@ class Message(OpenAIObject):
|
||||
|
||||
|
||||
class Delta(OpenAIObject):
|
||||
tool_calls: Optional[List[ChatCompletionDeltaToolCall]]
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
content=None,
|
||||
|
||||
Reference in New Issue
Block a user