Skip to content

Commit

Permalink
Update mistral data models
Browse files Browse the repository at this point in the history
  • Loading branch information
KaQuMiQ authored Aug 16, 2024
1 parent 5e11a71 commit 5288d77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/draive/mistral/lmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ def _convert_context_element(
tool_calls=[
{
"id": request.identifier,
"type": "function",
"function": {
"name": request.tool,
"arguments": json.dumps(request.arguments),
Expand Down
2 changes: 0 additions & 2 deletions src/draive/mistral/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class ChatFunctionCall(TypedDict, total=False):

class ChatToolCallRequest(TypedDict, total=False):
id: Required[str]
type: Required[Literal["function"]]
function: Required[ChatFunctionCall]


Expand All @@ -65,7 +64,6 @@ class ChatFunctionCallResponse(DataModel):

class ChatToolCallResponse(DataModel):
id: str
type: Literal["function"]
function: ChatFunctionCallResponse


Expand Down

0 comments on commit 5288d77

Please sign in to comment.