ChaineLlmClientTest

8

tests

0

failures

0

ignored

0.059s

duration

100%

successful

Tests

Test Duration Result
le code 5xx est aussi reconnu dans la cause() 0.001s passed
le premier qui répond arrête la chaîne() 0.002s passed
modèle vide = identifiant demandé par l'appelant conservé() 0.002s passed
nouvelle tentative bornée — deux 503 de suite, on passe au suivant() 0.026s passed
passe au fournisseur suivant quand le premier échoue, avec SON modèle() 0.016s passed
tous en échec = l'erreur remonte (abstention), rien n'est fabriqué() 0.006s passed
un 429 (quota) n'est pas retenté — fournisseur suivant aussitôt() 0.003s passed
un 503 passager est retenté sur le MÊME fournisseur avant de passer au suivant() 0.003s passed

Standard output

12:26:46.284 [Test worker @coroutine#4] WARN com.alertimmo.aiscraping.config.ChaineLlmClient -- LLM execute via mistral (m) en échec (tentative 1/2) — IllegalStateException: Error from client: OpenAILLMClient
Status code: 503
Error body:
Service unavailable. Nouvelle tentative dans 0s.
12:26:46.287 [Test worker @coroutine#4] WARN com.alertimmo.aiscraping.config.ChaineLlmClient -- LLM execute via mistral (m) en échec (tentative 2/2) — IllegalStateException: Error from client: OpenAILLMClient
Status code: 503
Error body:
Service unavailable. Fournisseur suivant.
12:26:46.289 [Test worker @coroutine#4] INFO com.alertimmo.aiscraping.config.ChaineLlmClient -- llm_appel operation=t methode=execute fournisseur=secours modele=s tentative=1 duree_ms=0 tokens_entree=inconnu tokens_sortie=inconnu cout_usd=inconnu empreinte_prompt=aucune
12:26:46.293 [Test worker @coroutine#5] WARN com.alertimmo.aiscraping.config.ChaineLlmClient -- LLM execute via a (m1) en échec (tentative 1/2) — IllegalStateException: 429 insufficient_quota. Fournisseur suivant.
12:26:46.293 [Test worker @coroutine#5] WARN com.alertimmo.aiscraping.config.ChaineLlmClient -- LLM execute via b (m2) en échec (tentative 1/2) — IllegalStateException: 429 insufficient_quota. Fournisseur suivant.
12:26:46.299 [Test worker @coroutine#6] INFO com.alertimmo.aiscraping.config.ChaineLlmClient -- llm_appel operation=t methode=execute fournisseur=openai modele=gpt-4o-mini tentative=1 duree_ms=0 tokens_entree=inconnu tokens_sortie=inconnu cout_usd=inconnu empreinte_prompt=aucune
12:26:46.315 [Test worker @coroutine#7] WARN com.alertimmo.aiscraping.config.ChaineLlmClient -- LLM execute via groq (openai/gpt-oss-120b) en échec (tentative 1/2) — IllegalStateException: 429 insufficient_quota. Fournisseur suivant.
12:26:46.316 [Test worker @coroutine#7] INFO com.alertimmo.aiscraping.config.ChaineLlmClient -- llm_appel operation=t methode=execute fournisseur=mistral modele=mistral-small-latest tentative=1 duree_ms=0 tokens_entree=inconnu tokens_sortie=inconnu cout_usd=inconnu empreinte_prompt=aucune
12:26:46.318 [Test worker @coroutine#8] INFO com.alertimmo.aiscraping.config.ChaineLlmClient -- llm_appel operation=t methode=execute fournisseur=a modele=m1 tentative=1 duree_ms=0 tokens_entree=inconnu tokens_sortie=inconnu cout_usd=inconnu empreinte_prompt=aucune
12:26:46.321 [Test worker @coroutine#9] WARN com.alertimmo.aiscraping.config.ChaineLlmClient -- LLM execute via mistral (m) en échec (tentative 1/2) — IllegalStateException: Error from client: OpenAILLMClient
Status code: 503
Error body:
Service unavailable. Nouvelle tentative dans 0s.
12:26:46.321 [Test worker @coroutine#9] INFO com.alertimmo.aiscraping.config.ChaineLlmClient -- llm_appel operation=t methode=execute fournisseur=mistral modele=m tentative=2 duree_ms=0 tokens_entree=inconnu tokens_sortie=inconnu cout_usd=inconnu empreinte_prompt=aucune
12:26:46.325 [Test worker @coroutine#10] WARN com.alertimmo.aiscraping.config.ChaineLlmClient -- LLM execute via openai (o) en échec (tentative 1/2) — IllegalStateException: Error from client: OpenAILLMClient
Status code: 429
Error body:
insufficient_quota. Fournisseur suivant.
12:26:46.326 [Test worker @coroutine#10] INFO com.alertimmo.aiscraping.config.ChaineLlmClient -- llm_appel operation=t methode=execute fournisseur=mistral modele=m tentative=1 duree_ms=0 tokens_entree=inconnu tokens_sortie=inconnu cout_usd=inconnu empreinte_prompt=aucune