[BUG] Native Azure provider ignores timeout and max_retries on the completions path
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 25/100
Direzione di ricerca
Find AzureCompletion._make_client_kwargs() and compare the default completions path with the responses path, which already forwards these settings. Check the sync and async client construction and related tests for retry and timeout configuration. Done when both completions clients receive the expected retry and timeout values; linked pull request #9881 indicates work is already underway.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
LLM(model="azure/...", timeout=..., max_retries=...) accepts timeout and max_retries on AzureCompletion (and exports both in to_config_dict() and forwards them when api="responses"), but on the default api="completions" path _make_client_kwargs() never passes either setting to ChatCompletionsClient or AsyncChatCompletionsClient.
As a result:
max_retries(includingmax_retries=0to disable SDK retries or a higher count likemax_retries=5) is ignored, and both sync and async Azure clients always useazure-core's defaulttotal_retries=3(even differing fromAzureCompletion's ownmax_retries: int = 2field default).timeoutis ignored, leavingconnection_timeoutandread_timeoutat the 300s SDK defaults.
Minimal Reproduction
from crewai import LLM
llm = LLM(
model="azure/gpt-4o",
api_key="test-key",
endpoint="https://example.openai.azure.com",
timeout=15.0,
max_retries=0,
)
sync_client = llm._get_sync_client()
print("total_retries:", sync_client._config.retry_policy.total_retries) # 3 instead of 0
print("read_timeout:", sync_client._client._pipeline._transport.connection_config.read_timeout) # 300 instead of 15.0
Expected Behavior
_make_client_kwargs() passes retry_total=self.max_retries and, when self.timeout is not None, connection_timeout=self.timeout and read_timeout=self.timeout so both the sync and async Azure AI Inference clients honor the configured retry and timeout settings.
- Lingua principale
- Python
- Stelle
- 61.2k
- Fork
- 9.2k
- Merge medio
- 1g 14h
- PR unite (30g)
- 180
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di crewAIInc/crewAI
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
[FEATURE] Add Straitly as a native OpenAI-compatible LLM providerForse già presa @HashimSyedUBC l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Native OpenAI sync streaming with response_model returns an empty string and emits no completed event when the parse is missingForse già presa @basil-k-aji-dev l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Native Azure provider ignores the seed settingForse già presa @basil-k-aji-dev l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
crewAIInc/crewAI#9787 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] LiteLLM path reports 0 cached and reasoning tokens in the usage summaryForse già presa @basil-k-aji-dev l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di crewAIInc/crewAI
Issue simili
-
bug harness
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
mruangutai/harness#2687 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
modal-labs/modal-client#4158 ·
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
The-Swarm-Corporation/swarms-rs#168 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] SMTP listener now binds to EMAIL_PORT instead of 2525 since the gunicorn switch 5.0.3-ls373Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
linuxserver/docker-healthchecks#137 · 1 commento ·