ChaineLlmClientTest

8

tests

0

failures

0

ignored

0.060s

duration

100%

successful

Tests

Test Duration Result
le code 5xx est aussi reconnu dans la cause() 0s 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.035s passed
passe au fournisseur suivant quand le premier échoue, avec SON modèle() 0.003s passed
tous en échec = l'erreur remonte (abstention), rien n'est fabriqué() 0.014s passed
un 429 (quota) n'est pas retenté — fournisseur suivant aussitôt() 0.002s passed
un 503 passager est retenté sur le MÊME fournisseur avant de passer au suivant() 0.002s passed

Standard output

05:24:07.649 [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.
05:24:07.651 [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.
05:24:07.653 [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
05:24:07.659 [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.
05:24:07.659 [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.
05:24:07.673 [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
05:24:07.675 [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.
05:24:07.677 [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
05:24:07.679 [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
05:24:07.684 [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.
05:24:07.685 [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
05:24:07.688 [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.
05:24:07.689 [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