mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 00:40:13 +08:00
v1.3.10 added the `openai_http_client.disable_ssl_verify_enabled` helper and applied it to the SDK paths (`openai_sdk` embedding, `openai_compat_provider`, `azure_openai_provider`, tutorbot `openai_compat_provider`). Five raw-httpx call sites still ignored the flag: - `provider_core/openai_codex_provider.py:79` hardcoded `verify=True` on the first attempt before falling back on `CERTIFICATE_VERIFY_FAILED`. - `embedding/adapters/openai_compatible.py:193` constructed `httpx.AsyncClient(timeout=...)` with no `verify` kwarg. - `embedding/adapters/jina.py:89`, `ollama.py:61`, `cohere.py:115` same. Each site now consults the helper and passes `verify=not disable_ssl_verify_enabled()`. The codex provider's `CERTIFICATE_VERIFY_FAILED` retry path is preserved unchanged. Tests: - `tests/services/embedding/test_disable_ssl_verify.py` (5 adapter tests + 1 production-guard test) asserts each adapter passes `verify=False` when the flag is set and `verify=True` otherwise. - `tests/services/llm/test_codex_disable_ssl_verify.py` covers the default-true case, flag-flip-to-false case, and the retry-on-cert-failure fallback.