Skip to content
Discussion options

You must be logged in to vote

Hey @dpolist, apologies for the extremely stale reply here. This one is old enough that a lot has changed since you asked, mostly in your favor. The biggest update: Strands now ships a native Gemini provider, so you don't need to go through LiteLLM for Gemini at all. Install with pip install 'strands-agents[gemini]' and use it directly:

from strands.models.gemini import GeminiModel

model = GeminiModel(
    client_args={"api_key": "<KEY>"},
    model_id="gemini-2.5-flash",
)

Tool calling works through the standard agent loop with this provider. Docs are here: Google provider.

If you specifically need to stay on LiteLLM (for example behind a LiteLLM proxy), the LiteLLM provider has had sev…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yonib05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants