Fedir Zadniprovskyi 2024-06-03
deps: add httpx-sse dev
@dc66c3e3631621d9912d352cca297c6c0db5b73b
flake.nix
--- flake.nix
+++ flake.nix
@@ -32,6 +32,7 @@
               websocat
             ];
             shellHook = ''
+              poetry env use python3.12
               source $(poetry env info --path)/bin/activate
               export LD_LIBRARY_PATH=${pkgs.stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH
               export LD_LIBRARY_PATH=${pkgs.zlib}/lib:$LD_LIBRARY_PATH
poetry.lock
--- poetry.lock
+++ poetry.lock
@@ -640,6 +640,17 @@
 socks = ["socksio (==1.*)"]
 
 [[package]]
+name = "httpx-sse"
+version = "0.4.0"
+description = "Consume Server-Sent Event (SSE) messages with HTTPX."
+optional = false
+python-versions = ">=3.8"
+files = [
+    {file = "httpx-sse-0.4.0.tar.gz", hash = "sha256:1e81a3a3070ce322add1d3529ed42eb5f70817f45ed6ec915ab753f961139721"},
+    {file = "httpx_sse-0.4.0-py3-none-any.whl", hash = "sha256:f329af6eae57eaa2bdfd962b42524764af68075ea87370a2de920af5341e318f"},
+]
+
+[[package]]
 name = "huggingface-hub"
 version = "0.23.2"
 description = "Client library to download and publish models, datasets and other repos on the huggingface.co hub"
@@ -2005,4 +2016,4 @@
 [metadata]
 lock-version = "2.0"
 python-versions = "^3.12"
-content-hash = "446d88a0b7136e722f39609774cc7778dd5a31eb9eb57eb8f7c1596781648587"
+content-hash = "0339ad1c40fad7ef69af9bda6c5754e3dac27a53ac33c8dbec9864cc70bbee43"
pyproject.toml
--- pyproject.toml
+++ pyproject.toml
@@ -20,6 +20,7 @@
 pytest-xdist = "^3.6.1"
 youtube-dl = {git = "https://github.com/ytdl-org/youtube-dl.git"}
 openai = "^1.30.3"
+httpx-sse = "^0.4.0"
 
 [tool.ruff]
 target-version = "py312"
Add a comment
List