Skip to content

Commit

Permalink
mistral lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Sep 19, 2024
1 parent 6ad50da commit f6c4b73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/inspect_ai/model/_providers/mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import Any

from mistralai import (
ChatCompletionRequestToolChoice,
FunctionCall,
FunctionName,
Mistral,
Expand Down
6 changes: 4 additions & 2 deletions tests/tools/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ async def add(x: int, y: int):
return add


def check_tools(model: Model, disable: list[str] = ["calls", "force", "none"]) -> None:
def check_tools(
model: Model, disable: list[Literal["calls", "force", "none"]] = []
) -> None:
if "calls" not in disable:
check_tools_calls(model)
if "force" not in disable:
Expand Down Expand Up @@ -171,7 +173,7 @@ def test_anthropic_tools():

@skip_if_no_mistral
def test_mistral_tools():
check_tools("mistral/mistral-large-latest", disable=["force"])
check_tools("mistral/mistral-large-latest")


@skip_if_no_groq
Expand Down

0 comments on commit f6c4b73

Please sign in to comment.