[BUG] Native Gemini provider ignores timeout, so requests never time out
メンテナーはふだん 1 日以内に返信
@abhishekacharya200 がすでに取り組んでいます。
2026年11月24日 から。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
調査の方向性
Start in crewai/llms/providers/gemini/completion.py: inspect GeminiCompletion, how BaseLLM moves timeout into additional_params, and where genai.Client is built with http_options. Check the linked PRs #9742 and #9748 before writing anything, since work is already under way. Done means http_options.timeout is set in milliseconds for call() and acall(), to_config_dict() keeps timeout, and the reproduction from the issue plus provider tests pass.
索引モデルが issue の本文から書いたものです。
説明
Description
LLM(model="gemini/...", timeout=120) builds a GeminiCompletion, but the timeout is never passed to the Google Gen AI client. GeminiCompletion has no timeout field, so BaseLLM moves the value into additional_params, and the Gemini provider never reads additional_params. The client is created with no http_options.timeout, so a slow or stuck request waits forever.
The LLM docs use a Gemini model as the example for timeout=120, and the OpenAI and Anthropic providers both honor it.
Steps to Reproduce
from unittest.mock import patch
from crewai import LLM
with patch("crewai.llms.providers.gemini.completion.genai") as genai:
llm = LLM(model="gemini/gemini-2.0-flash-001", api_key="x", timeout=30)
print(type(llm).__name__) # GeminiCompletion
print(genai.Client.call_args.kwargs) # no http_options
print(llm.additional_params) # {'timeout': 30}
Expected behavior
The client is built with http_options.timeout=30000 (the SDK takes milliseconds), and to_config_dict() keeps timeout.
Actual behavior
The timeout is silently dropped. Calls through call() and acall() have no client side timeout.
Possible Solution
Add a timeout field to GeminiCompletion and merge it into client_params["http_options"] when building genai.Client. In Vertex AI Express mode, merge api_version="v1" into the same options instead of replacing them.
Note for maintainers: this was prepared with help from an AI coding agent and checked by me, so per CONTRIBUTING please add the llm-generated label (I don't have permission to add labels).
- 主要言語
- Python
- スター
- 61.2k
- フォーク
- 9.2k
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 180
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
crewAIInc/crewAI のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
[FEATURE] Add Straitly as a native OpenAI-compatible LLM provider対応中かも @HashimSyedUBC が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
[BUG] Native OpenAI sync streaming with response_model returns an empty string and emits no completed event when the parse is missing対応中かも @basil-k-aji-dev が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
[BUG] Native Azure provider ignores the seed setting対応中かも @basil-k-aji-dev が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
crewAIInc/crewAI#9787 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] LiteLLM path reports 0 cached and reasoning tokens in the usage summary対応中かも @basil-k-aji-dev が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
crewAIInc/crewAI の issue をすべて見る
似ている issue
-
bug harness
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mruangutai/harness#2687 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
modal-labs/modal-client#4158 ·
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 72/100
The-Swarm-Corporation/swarms-rs#168 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] SMTP listener now binds to EMAIL_PORT instead of 2525 since the gunicorn switch 5.0.3-ls373オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
linuxserver/docker-healthchecks#137 · コメント 1 件 ·