From 09545774ab77d526ce60934660e1d68973646905 Mon Sep 17 00:00:00 2001 From: Stanislav Kaledin Date: Thu, 19 Feb 2026 12:23:36 +0400 Subject: [PATCH 1/2] Disable http2 in sync/async clients --- flymyai/core/clients/AsyncClient.py | 2 +- flymyai/core/clients/SyncClient.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flymyai/core/clients/AsyncClient.py b/flymyai/core/clients/AsyncClient.py index 840fd34..13f2d6b 100644 --- a/flymyai/core/clients/AsyncClient.py +++ b/flymyai/core/clients/AsyncClient.py @@ -29,7 +29,7 @@ class BaseAsyncClient(BaseClient[httpx.AsyncClient]): def _construct_client(self): return httpx.AsyncClient( - http2=True, + http2=False, headers=self.client_info.authorization_headers, base_url=os.getenv("FLYMYAI_DSN", "https://api.flymy.ai/"), timeout=_predict_timeout, diff --git a/flymyai/core/clients/SyncClient.py b/flymyai/core/clients/SyncClient.py index ff6a1a3..b805a72 100644 --- a/flymyai/core/clients/SyncClient.py +++ b/flymyai/core/clients/SyncClient.py @@ -29,7 +29,7 @@ class BaseSyncClient(BaseClient[httpx.Client]): def _construct_client(self): return httpx.Client( - http2=True, + http2=False, headers=self.client_info.authorization_headers, base_url=os.getenv("FLYMYAI_DSN", "https://api.flymy.ai/"), timeout=_predict_timeout, From 589691791876b3ab318bbb4250344e7013dcf00e Mon Sep 17 00:00:00 2001 From: Stanislav Kaledin Date: Thu, 19 Feb 2026 12:48:41 +0400 Subject: [PATCH 2/2] Fix tests --- .github/workflows/test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a8d2cb9..c402c9e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -25,6 +25,8 @@ jobs: run: git config --global --add safe.directory '*' - name: Install dependencies + env: + PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1" run: pip3 install poetry flake8 black && poetry config virtualenvs.create ${USE_VENV} && poetry install # # - name: flake8