Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ openai = ["openai~=1.88", "tiktoken~=0.9"]
anthropic = ["anthropic~=0.54", "tokenizers~=0.21"]
anthropic_bedrock = ["anthropic[bedrock]~=0.54", "tokenizers~=0.21"]
mistral = ["draive[sentencepiece]", "mistralai~=1.8"]
gemini = ["draive[sentencepiece]", "google-genai~=1.20"]
gemini = [
"draive[sentencepiece]",
"google-genai~=1.20",
"google-api-core~=2.25,<3.0",
]
ollama = ["ollama~=0.5"]
bedrock = ["boto3~=1.38"]
vllm = ["openai~=1.88"]
Expand Down
6 changes: 3 additions & 3 deletions src/draive/gemini/lmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"content_element_as_part",
"context_element_as_content",
"output_as_response_declaration",
"resoluton_as_media_resulution",
"resolution_as_media_resolution",
"result_part_as_content_or_call",
"tools_as_tools_config",
)
Expand Down Expand Up @@ -349,15 +349,15 @@ def result_part_as_content_or_call(
return result


def resoluton_as_media_resulution(
def resolution_as_media_resolution(
resolution: Literal["low", "medium", "high"] | Missing,
/,
) -> MediaResolution | None:
match resolution:
case "low":
return MediaResolution.MEDIA_RESOLUTION_LOW

case "modeium":
case "medium":
return MediaResolution.MEDIA_RESOLUTION_MEDIUM

case "high":
Expand Down
Loading