DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
fix: add ConnectError to embedding retry exceptions (#353)
S-A-D-4568085c8ad97
diff --git a/deeptutor/services/embedding/adapters/openai_compatible.py b/deeptutor/services/embedding/adapters/openai_compatible.pyindex 5788a8d92..63a494af3 100644--- a/deeptutor/services/embedding/adapters/openai_compatible.py+++ b/deeptutor/services/embedding/adapters/openai_compatible.py@@ -166,7 +166,7 @@ class OpenAICompatibleEmbeddingAdapter(BaseEmbeddingAdapter):response.raise_for_status()data = response.json()break- except (httpx.ReadTimeout, httpx.ConnectTimeout, httpx.PoolTimeout) as exc:+ except (httpx.ReadTimeout, httpx.ConnectTimeout, httpx.PoolTimeout, httpx.ConnectError) as exc:last_exc = excif attempt < self._MAX_RETRIES:wait = self._RETRY_BACKOFF * (2 ** attempt)