Skip to content

Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)

Python

Add voice note transcription feature

Alishahryar1d668f6e4768e
diff --git a/.env.example b/.env.example
index ca36db03..9d73362b 100644
--- a/.env.example
+++ b/.env.example
@@ -32,6 +32,16 @@ MESSAGING_RATE_LIMIT=40
MESSAGING_RATE_WINDOW=1
+# Voice Note Transcription (local faster-whisper; install with: uv sync --extra voice)
+VOICE_NOTE_ENABLED=true
+WHISPER_MODEL=base
+HF_TOKEN=""
+
+
+# WHISPER_DEVICE: "cpu" | "cuda" | "auto" (auto = try GPU, fall back to CPU)
+WHISPER_DEVICE=cpu
+
+
# Telegram Config
TELEGRAM_BOT_TOKEN=""
ALLOWED_TELEGRAM_USER_ID=""
diff --git a/README.md b/README.md
index d6e0557c..d4bb3bac 100644
--- a/README.md
+++ b/README.md
@@ -190,6 +190,7 @@ Control Claude Code remotely from Discord. Send tasks, watch live progress, and
- Session persistence across server restarts
- Live streaming of thinking tokens, tool calls, and results
- Up to 10 concurrent Claude CLI sessions
+- **Voice notes** — send voice messages; they are transcribed to text and processed like regular prompts (see [Voice Notes](#voice-notes))
- Commands: `/stop` (cancel tasks; reply to a message to stop only that task), `/clear` (standalone: reset all sessions; reply to a message to clear that branch downwards), `/stats`
### Setup
@@ -234,6 +235,27 @@ Get a token from [@BotFather](https://t.me/BotFather); find your user ID via [@u
---
+## Voice Notes
+
+Send voice messages on Telegram or Discord; they are transcribed to text and processed as regular prompts. Uses [faster-whisper](https://github.com/SYSTRAN/faster-whisper) — free, no API key, works offline.
+
+Install the optional voice extra:
+
+```bash
+uv sync --extra voice
+```
+
+**Configuration:**
+
+| Variable | Description | Default |
+|----------|-------------|---------|
+| `VOICE_NOTE_ENABLED` | Enable voice note handling | `true` |
+| `WHISPER_MODEL` | Model size: `tiny`, `base`, `small`, `medium`, `large-v2` | `base` |
+| `WHISPER_DEVICE` | `cpu` \| `cuda` \| `auto` (auto = try GPU, fall back to CPU) | `cpu` |
+| `HF_TOKEN` | Hugging Face token for faster model downloads (optional; [create one](https://huggingface.co/settings/tokens)) | — |
+
+---
+
## Models
<details>
@@ -313,6 +335,9 @@ Browse: [model.lmstudio.ai](https://model.lmstudio.ai)
| `ALLOWED_DISCORD_CHANNELS` | Comma-separated channel IDs (empty = none allowed) | `""` |
| `TELEGRAM_BOT_TOKEN` | Telegram Bot Token | `""` |
| `ALLOWED_TELEGRAM_USER_ID` | Allowed Telegram User ID | `""` |
+| `VOICE_NOTE_ENABLED` | Enable voice note handling | `true` |
+| `WHISPER_MODEL` | Local Whisper model size | `base` |
+| `WHISPER_DEVICE` | `cpu` \| `cuda` \| `auto` | `cpu` |
| `MESSAGING_RATE_LIMIT` | Messaging messages per window | `1` |
| `MESSAGING_RATE_WINDOW` | Messaging window (seconds) | `1` |
| `CLAUDE_WORKSPACE` | Directory for agent workspace | `./agent_workspace` |
diff --git a/config/settings.py b/config/settings.py
index dbeebc65..413438e0 100644
--- a/config/settings.py
+++ b/config/settings.py
@@ -73,6 +73,17 @@ class Settings(BaseSettings):
# ==================== NIM Settings ====================
nim: NimSettings = Field(default_factory=NimSettings)
+ # ==================== Voice Note Transcription ====================
+ voice_note_enabled: bool = Field(
+ default=True, validation_alias="VOICE_NOTE_ENABLED"
+ )
+ # Hugging Face token for faster model downloads (optional)
+ hf_token: str = Field(default="", validation_alias="HF_TOKEN")
+ # Model size: "tiny" | "base" | "small" | "medium" | "large-v2"
+ whisper_model: str = Field(default="base", validation_alias="WHISPER_MODEL")
+ # Device: "cpu" | "cuda" | "auto" (auto = try cuda, fall back to cpu)
+ whisper_device: str = Field(default="cpu", validation_alias="WHISPER_DEVICE")
+
# ==================== Bot Wrapper Config ====================
telegram_bot_token: Optional[str] = None
allowed_telegram_user_id: Optional[str] = None
diff --git a/messaging/platforms/discord.py b/messaging/platforms/discord.py
index bd7d653f..4138fc9f 100644
--- a/messaging/platforms/discord.py
+++ b/messaging/platforms/discord.py
@@ -6,6 +6,8 @@ Implements MessagingPlatform for Discord using discord.py.
import asyncio
import os
+import tempfile
+from pathlib import Path
from typing import Callable, Awaitable, Optional, Any, Set, cast
from loguru import logger
@@ -14,6 +16,8 @@ from .base import MessagingPlatform
from ..models import IncomingMessage
from ..rendering.discord_markdown import format_status_discord
+AUDIO_EXTENSIONS = (".ogg", ".mp4", ".mp3", ".wav", ".m4a")
+
_discord_module: Any = None
try:
import discord as _discord_import
@@ -108,18 +112,146 @@ class DiscordPlatform(MessagingPlatform):
self._limiter: Optional[Any] = None
self._start_task: Optional[asyncio.Task] = None
+ def _get_audio_attachment(self, message: Any) -> Any | None:
+ """Return first audio attachment, or None."""
+ for att in message.attachments:
+ ct = (att.content_type or "").lower()
+ fn = (att.filename or "").lower()
+ if ct.startswith("audio/") or any(
+ fn.endswith(ext) for ext in AUDIO_EXTENSIONS
+ ):
+ return att
+ return None
+
+ async def _handle_voice_note(
+ self, message: Any, attachment: Any, channel_id: str
+ ) -> bool:
+ """Handle voice/audio attachment. Returns True if handled."""
+ from config.settings import get_settings
+
+ settings = get_settings()
+ if not settings.voice_note_enabled:
+ await message.reply("Voice notes are disabled.")
+ return True
+
+ if not self._message_handler:
+ return False
+
+ user_id = str(message.author.id)
+ message_id = str(message.id)
+ reply_to = (
+ str(message.reference.message_id)
+ if message.reference and message.reference.message_id
+ else None
+ )
+
+ ext = ".ogg"
+ fn = (attachment.filename or "").lower()
+ for e in AUDIO_EXTENSIONS:
+ if fn.endswith(e):
+ ext = e
+ break
+ ct = attachment.content_type or "audio/ogg"
+ if "mp4" in ct or "m4a" in fn:
+ ext = ".m4a" if "m4a" in fn else ".mp4"
+ elif "mp3" in ct or fn.endswith(".mp3"):
+ ext = ".mp3"
+
+ tmp = tempfile.NamedTemporaryFile(suffix=ext, delete=False)
+ tmp_path = Path(tmp.name)
+ tmp.close()
+
+ try:
+ await attachment.save(str(tmp_path))
+
+ from ..transcription import transcribe_audio
+
+ transcribed = await asyncio.to_thread(
+ transcribe_audio,
+ tmp_path,
+ ct,
+ whisper_model=settings.whisper_model,
+ whisper_device=settings.whisper_device,
+ )
+
+ incoming = IncomingMessage(
+ text=transcribed,
+ chat_id=channel_id,
+ user_id=user_id,
+ message_id=message_id,
+ platform="discord",
+ reply_to_message_id=reply_to,
+ username=message.author.display_name,
+ raw_event=message,
+ )
+
+ logger.info(
+ "DISCORD_VOICE: chat_id=%s message_id=%s transcribed=%r",
+ channel_id,
+ message_id,
+ (transcribed[:80] + "..." if len(transcribed) > 80 else transcribed),
+ )
+
+ await self._message_handler(incoming)
+ return True
+ except ValueError as e:
+ await message.reply(str(e)[:200])
+ return True
+ except ImportError as e:
+ await message.reply(str(e)[:200])
+ return True
+ except Exception as e:
+ # #region agent log
+ try:
+ import traceback
+
+ with open(
+ "c:\\Users\\alish\\Desktop\\projects\\free-claude-code\\.cursor\\debug.log",
+ "a",
+ ) as _dbg:
+ _dbg.write(
+ '{"location":"discord._handle_voice_note:exception","message":"Voice transcription exception","data":{"type":'
+ + repr(type(e).__name__)
+ + ',"msg":'
+ + repr(str(e))
+ + ',"traceback":'
+ + repr(traceback.format_exc()[:2000])
+ + '},"timestamp":'
+ + str(__import__("time").time_ns() // 1_000_000)
+ + '}\n'
+ )
+ except Exception:
+ pass
+ # #endregion
+ logger.error(f"Voice transcription failed: {e}")
+ await message.reply(
+ "Could not transcribe voice note. Please try again or send text."
+ )
+ return True
+ finally:
+ try:
+ tmp_path.unlink(missing_ok=True)
+ except OSError:
+ pass
+
async def _on_discord_message(self, message: Any) -> None:
"""Handle incoming Discord messages."""
if message.author.bot:
return
- if not message.content:
- return
channel_id = str(message.channel.id)
if not self.allowed_channel_ids or channel_id not in self.allowed_channel_ids:
return
+ # Handle voice/audio attachments when message has no text content
+ if not message.content:
+ audio_att = self._get_audio_attachment(message)
+ if audio_att:
+ await self._handle_voice_note(message, audio_att, channel_id)
+ return
+ return
+
user_id = str(message.author.id)
message_id = str(message.id)
reply_to = (
diff --git a/messaging/platforms/telegram.py b/messaging/platforms/telegram.py
index 5937ca7f..731cf4be 100644
--- a/messaging/platforms/telegram.py
+++ b/messaging/platforms/telegram.py
@@ -6,6 +6,8 @@ Implements MessagingPlatform for Telegram using python-telegram-bot.
import asyncio
import os
+import tempfile
+from pathlib import Path
# Opt-in to future behavior for python-telegram-bot (retry_after as timedelta)
# This must be set BEFORE importing telegram.error
@@ -101,6 +103,10 @@ class TelegramPlatform(MessagingPlatform):
self._application.add_handler(
MessageHandler(filters.COMMAND, self._on_telegram_message)
)
+ # Voice note handler
+ self._application.add_handler(
+ MessageHandler(filters.VOICE, self._on_telegram_voice)
+ )
# Initialize internal components with retry logic
max_retries = 3
@@ -489,3 +495,97 @@ class TelegramPlatform(MessagingPlatform):
)
except Exception:
pass
+
+ async def _on_telegram_voice(
+ self, update: "Update", context: "ContextTypes.DEFAULT_TYPE"
+ ) -> None:
+ """Handle incoming voice messages."""
+ if (
+ not update.message
+ or not update.message.voice
+ or not update.effective_user
+ or not update.effective_chat
+ ):
+ return
+
+ from config.settings import get_settings
+
+ settings = get_settings()
+ if not settings.voice_note_enabled:
+ await update.message.reply_text("Voice notes are disabled.")
+ return
+
+ user_id = str(update.effective_user.id)
+ chat_id = str(update.effective_chat.id)
+
+ if self.allowed_user_id and user_id != str(self.allowed_user_id).strip():
+ logger.warning(f"Unauthorized voice access attempt from {user_id}")
+ return
+
+ if not self._message_handler:
+ return
+
+ message_id = str(update.message.message_id)
+ reply_to = (
+ str(update.message.reply_to_message.message_id)
+ if update.message.reply_to_message
+ else None
+ )
+
+ voice = update.message.voice
+ suffix = ".ogg"
+ if voice.mime_type and "mpeg" in voice.mime_type:
+ suffix = ".mp3"
+ elif voice.mime_type and "mp4" in voice.mime_type:
+ suffix = ".mp4"
+
+ tmp = tempfile.NamedTemporaryFile(suffix=suffix, delete=False)
+ tmp_path = Path(tmp.name)
+ tmp.close()
+
+ try:
+ tg_file = await context.bot.get_file(voice.file_id)
+ await tg_file.download_to_drive(custom_path=str(tmp_path))
+
+ from ..transcription import transcribe_audio
+
+ transcribed = await asyncio.to_thread(
+ transcribe_audio,
+ tmp_path,
+ voice.mime_type or "audio/ogg",
+ whisper_model=settings.whisper_model,
+ whisper_device=settings.whisper_device,
+ )
+
+ incoming = IncomingMessage(
+ text=transcribed,
+ chat_id=chat_id,
+ user_id=user_id,
+ message_id=message_id,
+ platform="telegram",
+ reply_to_message_id=reply_to,
+ raw_event=update,
+ )
+
+ logger.info(
+ "TELEGRAM_VOICE: chat_id=%s message_id=%s transcribed=%r",
+ chat_id,
+ message_id,
+ (transcribed[:80] + "..." if len(transcribed) > 80 else transcribed),
+ )
+
+ await self._message_handler(incoming)
+ except ValueError as e:
+ await update.message.reply_text(str(e)[:200])
+ except ImportError as e:
+ await update.message.reply_text(str(e)[:200])
+ except Exception as e:
+ logger.error(f"Voice transcription failed: {e}")
+ await update.message.reply_text(
+ "Could not transcribe voice note. Please try again or send text."
+ )
+ finally:
+ try:
+ tmp_path.unlink(missing_ok=True)
+ except OSError:
+ pass
diff --git a/messaging/transcription.py b/messaging/transcription.py
new file mode 100644
index 00000000..29340874
--- /dev/null
+++ b/messaging/transcription.py
@@ -0,0 +1,114 @@
+"""Voice note transcription for messaging platforms.
+
+Uses local faster-whisper for free, offline transcription.
+"""
+
+import os
+from pathlib import Path
+from typing import Any, Iterator, Protocol, cast
+
+from loguru import logger
+
+# Max file size in bytes (25 MB)
+MAX_AUDIO_SIZE_BYTES = 25 * 1024 * 1024
+
+# Lazy-loaded models: (model_name, device) -> model
+_model_cache: dict[tuple[str, str], Any] = {}
+
+
+class _WhisperModelLike(Protocol):
+ def transcribe(
+ self, audio: str, beam_size: int = 5
+ ) -> tuple[Iterator[Any], Any]: ...
+
+
+def _get_local_model(whisper_model: str, device: str) -> _WhisperModelLike:
+ """Lazy-load faster-whisper model. Raises ImportError if not installed."""
+ global _model_cache
+ resolved = device if device in ("cpu", "cuda") else "auto"
+ cache_key = (whisper_model, resolved)
+ if cache_key not in _model_cache:
+ try:
+ from config.settings import get_settings
+
+ token = get_settings().hf_token
+ if token:
+ os.environ["HF_TOKEN"] = token
+ import importlib
+
+ faster_whisper = importlib.import_module("faster_whisper")
+ WhisperModel = faster_whisper.WhisperModel
+ if device == "auto":
+ try:
+ _model_cache[cache_key] = WhisperModel(whisper_model, device="cuda")
+ except RuntimeError:
+ _model_cache[cache_key] = WhisperModel(whisper_model, device="cpu")
+ else:
+ _model_cache[cache_key] = WhisperModel(whisper_model, device=device)
+ except ImportError as e:
+ raise ImportError(
+ "Voice notes require the voice extra. Install with: uv sync --extra voice"
+ ) from e
+ return cast(_WhisperModelLike, _model_cache[cache_key])
+
+
+def transcribe_audio(
+ file_path: Path,
+ mime_type: str,
+ *,
+ whisper_model: str = "base",
+ whisper_device: str = "cpu",
+) -> str:
+ """
+ Transcribe audio file to text using local faster-whisper.
+
+ Args:
+ file_path: Path to audio file (OGG, MP3, MP4, WAV, M4A supported)
+ mime_type: MIME type of the audio (e.g. "audio/ogg")
+ whisper_model: Model size: "tiny", "base", "small", "medium", "large-v2"
+ whisper_device: "cpu" | "cuda" | "auto" (auto = try GPU, fall back to CPU)
+
+ Returns:
+ Transcribed text
+
+ Raises:
+ FileNotFoundError: If file does not exist
+ ValueError: If file too large
+ ImportError: If faster-whisper not installed
+ """
+ if not file_path.exists():
+ raise FileNotFoundError(f"Audio file not found: {file_path}")
+
+ size = file_path.stat().st_size
+ if size > MAX_AUDIO_SIZE_BYTES:
+ raise ValueError(
+ f"Audio file too large ({size} bytes). Max {MAX_AUDIO_SIZE_BYTES} bytes."
+ )
+
+ return _transcribe_local(file_path, whisper_model, whisper_device)
+
+
+def _transcribe_local(file_path: Path, whisper_model: str, whisper_device: str) -> str:
+ """Transcribe using local faster-whisper."""
+ model: _WhisperModelLike = _get_local_model(whisper_model, whisper_device)
+ try:
+ segments, _info = model.transcribe(str(file_path), beam_size=5)
+ except RuntimeError as e:
+ err_lower = str(e).lower()
+ if "cublas" in err_lower or "cuda" in err_lower:
+ # CUDA deferred load failed at inference; fall back to CPU
+ global _model_cache
+ for key in list(_model_cache):
+ if key[0] == whisper_model:
+ del _model_cache[key]
+ model = _get_local_model(whisper_model, "cpu")
+ segments, _info = model.transcribe(str(file_path), beam_size=5)
+ else:
+ raise
+ parts: list[str] = []
+ for segment in segments:
+ if segment.text:
+ parts.append(segment.text)
+ result = " ".join(parts).strip()
+ logger.debug(f"Local transcription: {len(result)} chars")
+ return result or "(no speech detected)"
diff --git a/pyproject.toml b/pyproject.toml
index 754da163..084f5abf 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -19,6 +19,9 @@ dependencies = [
"loguru>=0.7.0",
]
+[project.optional-dependencies]
+voice = ["faster-whisper>=1.0.0"]
+
[dependency-groups]
dev = [
"pytest>=9.0.2",
diff --git a/tests/messaging/test_transcription.py b/tests/messaging/test_transcription.py
new file mode 100644
index 00000000..e3b778d2
--- /dev/null
+++ b/tests/messaging/test_transcription.py
@@ -0,0 +1,91 @@
+"""Tests for voice note transcription."""
+
+import tempfile
+from pathlib import Path
+from unittest.mock import MagicMock, patch
+
+import pytest
+
+from messaging.transcription import (
+ transcribe_audio,
+ MAX_AUDIO_SIZE_BYTES,
+)
+
+
+def test_transcribe_file_not_found_raises():
+ """Non-existent file raises FileNotFoundError."""
+ with pytest.raises(FileNotFoundError, match="not found"):
+ transcribe_audio(Path("/nonexistent/file.ogg"), "audio/ogg")
+
+
+def test_transcribe_file_too_large_raises():
+ """File exceeding max size raises ValueError."""
+ with tempfile.NamedTemporaryFile(suffix=".ogg", delete=False) as f:
+ f.write(b"x" * (MAX_AUDIO_SIZE_BYTES + 1))
+ path = Path(f.name)
+ try:
+ with pytest.raises(ValueError, match="too large"):
+ transcribe_audio(path, "audio/ogg")
+ finally:
+ path.unlink(missing_ok=True)
+
+
+def test_transcribe_local_success():
+ """Local backend returns transcribed text."""
+ with tempfile.NamedTemporaryFile(suffix=".ogg", delete=False) as f:
+ f.write(b"fake ogg content")
+ path = Path(f.name)
+ try:
+ mock_segment = MagicMock()
+ mock_segment.text = "Hello world"
+ mock_model = MagicMock()
+ mock_model.transcribe.return_value = (iter([mock_segment]), None)
+
+ with patch(
+ "messaging.transcription._get_local_model",
+ return_value=mock_model,
+ ):
+ result = transcribe_audio(path, "audio/ogg", whisper_model="base")
+
+ assert result == "Hello world"
+ mock_model.transcribe.assert_called_once()
+ finally:
+ path.unlink(missing_ok=True)
+
+
+def test_transcribe_local_empty_segments_returns_no_speech():
+ """Local backend with no speech returns placeholder."""
+ with tempfile.NamedTemporaryFile(suffix=".ogg", delete=False) as f:
+ f.write(b"fake ogg")
+ path = Path(f.name)
+ try:
+ mock_model = MagicMock()
+ mock_model.transcribe.return_value = (iter([]), None)
+
+ with patch(
+ "messaging.transcription._get_local_model",
+ return_value=mock_model,
+ ):
+ result = transcribe_audio(path, "audio/ogg", whisper_model="base")
+
+ assert result == "(no speech detected)"
+ finally:
+ path.unlink(missing_ok=True)
+
+
+def test_transcribe_local_import_error_raises():
+ """Local backend when faster-whisper not installed raises ImportError."""
+ with tempfile.NamedTemporaryFile(suffix=".ogg", delete=False) as f:
+ f.write(b"fake ogg")
+ path = Path(f.name)
+ try:
+ with patch(
+ "messaging.transcription._get_local_model",
+ side_effect=ImportError(
+ "Voice notes require the voice extra. Install with: uv sync --extra voice"
+ ),
+ ):
+ with pytest.raises(ImportError, match="voice extra"):
+ transcribe_audio(path, "audio/ogg")
+ finally:
+ path.unlink(missing_ok=True)
diff --git a/tests/messaging/test_voice_handlers.py b/tests/messaging/test_voice_handlers.py
new file mode 100644
index 00000000..8975fcc2
--- /dev/null
+++ b/tests/messaging/test_voice_handlers.py
@@ -0,0 +1,174 @@
+"""Tests for voice note handling in Telegram and Discord platforms."""
+
+import tempfile
+from pathlib import Path
+from unittest.mock import AsyncMock, MagicMock, patch
+
+import pytest
+
+from messaging.platforms.telegram import TelegramPlatform
+from messaging.platforms.discord import DiscordPlatform, DISCORD_AVAILABLE
+
+
+def telegram_platform():
+ with patch("messaging.platforms.telegram.TELEGRAM_AVAILABLE", True):
+ return TelegramPlatform(bot_token="test_token", allowed_user_id="12345")
+
+
+async def test_telegram_voice_disabled_sends_reply(telegram_platform):
+ """When voice_note_enabled is False, reply with disabled message."""
+ mock_update = MagicMock()
+ mock_update.message.voice = MagicMock(file_id="f1", mime_type="audio/ogg")
+ mock_update.effective_user.id = 12345
+ mock_update.effective_chat.id = 6789
+ mock_update.message.reply_text = AsyncMock()
+
+ with patch(
+ "config.settings.get_settings",
+ return_value=MagicMock(voice_note_enabled=False),
+ ):
+ await telegram_platform._on_telegram_voice(mock_update, MagicMock())
+
+ mock_update.message.reply_text.assert_called_once_with("Voice notes are disabled.")
+
+
+async def test_telegram_voice_unauthorized_ignored(telegram_platform):
+ """Voice from unauthorized user is ignored (no reply)."""
+ mock_update = MagicMock()
+ mock_update.message.voice = MagicMock(file_id="f1", mime_type="audio/ogg")
+ mock_update.effective_user.id = 99999 # Not 12345
+ mock_update.message.reply_text = AsyncMock()
+
+ with patch(
+ "config.settings.get_settings",
+ return_value=MagicMock(voice_note_enabled=True),
+ ):
+ await telegram_platform._on_telegram_voice(mock_update, MagicMock())
+
+ mock_update.message.reply_text.assert_not_called()
+
+
+async def test_telegram_voice_success_invokes_handler(telegram_platform):
+ """Successful transcription invokes message handler with transcribed text."""
+ handler = AsyncMock()
+ telegram_platform.on_message(handler)
+
+ mock_update = MagicMock()
+ mock_voice = MagicMock(file_id="f1", mime_type="audio/ogg")
+ mock_update.message.voice = mock_voice
+ mock_update.message.message_id = 42
+ mock_update.message.reply_to_message = None
+ mock_update.effective_user.id = 12345
+ mock_update.effective_chat.id = 6789
+ mock_update.message.reply_text = AsyncMock()
+
+ mock_file = AsyncMock()
+ mock_context = MagicMock()
+ mock_context.bot.get_file = AsyncMock(return_value=mock_file)
+
+ with tempfile.NamedTemporaryFile(suffix=".ogg", delete=False) as f:
+ f.write(b"fake")
+ tmp_path = Path(f.name)
+
+ try:
+
+ async def fake_download(custom_path=None):
+ if custom_path:
+ Path(custom_path).write_bytes(b"fake ogg")
+
+ mock_file.download_to_drive = fake_download
+
+ mock_settings = MagicMock(
+ voice_note_enabled=True,
+ whisper_model="base",
+ )
+
+ with (
+ patch(
+ "config.settings.get_settings",
+ return_value=mock_settings,
+ ),
+ patch(
+ "messaging.transcription.transcribe_audio",
+ return_value="Hello from voice",
+ ),
+ ):
+ await telegram_platform._on_telegram_voice(mock_update, mock_context)
+
+ handler.assert_called_once()
+ incoming = handler.call_args[0][0]
+ assert incoming.text == "Hello from voice"
+ assert incoming.chat_id == "6789"
+ assert incoming.user_id == "12345"
+ assert incoming.platform == "telegram"
+ finally:
+ tmp_path.unlink(missing_ok=True)
+
+
[email protected](not DISCORD_AVAILABLE, reason="discord.py not installed")
+class TestDiscordGetAudioAttachment:
+ """Tests for _get_audio_attachment helper."""
+
+ def test_returns_none_when_no_attachments(self):
+ platform = DiscordPlatform(bot_token="token")
+ msg = MagicMock()
+ msg.attachments = []
+ assert platform._get_audio_attachment(msg) is None
+
+ def test_returns_none_when_no_audio_attachments(self):
+ platform = DiscordPlatform(bot_token="token")
+ msg = MagicMock()
+ att = MagicMock()
+ att.content_type = "image/png"
+ att.filename = "pic.png"
+ msg.attachments = [att]
+ assert platform._get_audio_attachment(msg) is None
+
+ def test_returns_attachment_by_content_type(self):
+ platform = DiscordPlatform(bot_token="token")
+ msg = MagicMock()
+ att = MagicMock()
+ att.content_type = "audio/ogg"
+ att.filename = "voice.ogg"
+ msg.attachments = [att]
+ assert platform._get_audio_attachment(msg) is att
+
+ def test_returns_attachment_by_extension(self):
+ platform = DiscordPlatform(bot_token="token")
+ msg = MagicMock()
+ att = MagicMock()
+ att.content_type = "application/octet-stream"
+ att.filename = "voice.ogg"
+ msg.attachments = [att]
+ assert platform._get_audio_attachment(msg) is att
+
+
[email protected](not DISCORD_AVAILABLE, reason="discord.py not installed")
+async def test_discord_voice_disabled_sends_reply():
+ """When voice_note_enabled is False, reply with disabled message."""
+ platform = DiscordPlatform(bot_token="token", allowed_channel_ids="123")
+ platform._message_handler = None
+
+ mock_message = MagicMock()
+ mock_message.author.bot = False
+ mock_message.content = None
+ mock_message.channel.id = 123
+ mock_message.reply = AsyncMock()
+
+ mock_att = MagicMock()
+ mock_att.content_type = "audio/ogg"
+ mock_att.filename = "voice.ogg"
+ mock_message.attachments = [mock_att]
+
+ with patch(
+ "config.settings.get_settings",
+ return_value=MagicMock(voice_note_enabled=False),
+ ):
+ await platform._on_discord_message(mock_message)
+
+ mock_message.reply.assert_called_once_with("Voice notes are disabled.")
diff --git a/uv.lock b/uv.lock
index 5ca84096..486ab18b 100644
--- a/uv.lock
+++ b/uv.lock
@@ -153,6 +153,28 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/f6/22/91616fe707a5c5510de2cac9b046a30defe7007ba8a0c04f9c08f27df312/audioop_lts-0.2.2-cp314-cp314t-win_arm64.whl", hash = "sha256:b492c3b040153e68b9fdaff5913305aaaba5bb433d8a7f73d5cf6a64ed3cc1dd", size = 25206, upload-time = "2025-08-05T16:43:16.444Z" },
]
+[[package]]
+name = "av"
+version = "16.1.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/78/cd/3a83ffbc3cc25b39721d174487fb0d51a76582f4a1703f98e46170ce83d4/av-16.1.0.tar.gz", hash = "sha256:a094b4fd87a3721dacf02794d3d2c82b8d712c85b9534437e82a8a978c175ffd", size = 4285203, upload-time = "2026-01-11T07:31:33.772Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/df/18/8812221108c27d19f7e5f486a82c827923061edf55f906824ee0fcaadf50/av-16.1.0-cp314-cp314-macosx_11_0_x86_64.whl", hash = "sha256:39a634d8e5a87e78ea80772774bfd20c0721f0d633837ff185f36c9d14ffede4", size = 26916179, upload-time = "2026-01-11T09:58:36.506Z" },
+ { url = "https://files.pythonhosted.org/packages/38/ef/49d128a9ddce42a2766fe2b6595bd9c49e067ad8937a560f7838a541464e/av-16.1.0-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:0ba32fb9e9300948a7fa9f8a3fc686e6f7f77599a665c71eb2118fdfd2c743f9", size = 21460168, upload-time = "2026-01-11T09:58:39.231Z" },
+ { url = "https://files.pythonhosted.org/packages/e6/a9/b310d390844656fa74eeb8c2750e98030877c75b97551a23a77d3f982741/av-16.1.0-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:ca04d17815182d34ce3edc53cbda78a4f36e956c0fd73e3bab249872a831c4d7", size = 39210194, upload-time = "2026-01-11T09:58:42.138Z" },
+ { url = "https://files.pythonhosted.org/packages/0c/7b/e65aae179929d0f173af6e474ad1489b5b5ad4c968a62c42758d619e54cf/av-16.1.0-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:ee0e8de2e124a9ef53c955fe2add6ee7c56cc8fd83318265549e44057db77142", size = 40811675, upload-time = "2026-01-11T09:58:45.871Z" },
+ { url = "https://files.pythonhosted.org/packages/54/3f/5d7edefd26b6a5187d6fac0f5065ee286109934f3dea607ef05e53f05b31/av-16.1.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:22bf77a2f658827043a1e184b479c3bf25c4c43ab32353677df2d119f080e28f", size = 40543942, upload-time = "2026-01-11T09:58:49.759Z" },
+ { url = "https://files.pythonhosted.org/packages/1b/24/f8b17897b67be0900a211142f5646a99d896168f54d57c81f3e018853796/av-16.1.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2dd419d262e6a71cab206d80bbf28e0a10d0f227b671cdf5e854c028faa2d043", size = 41924336, upload-time = "2026-01-11T09:58:53.344Z" },
+ { url = "https://files.pythonhosted.org/packages/1c/cf/d32bc6bbbcf60b65f6510c54690ed3ae1c4ca5d9fafbce835b6056858686/av-16.1.0-cp314-cp314-win_amd64.whl", hash = "sha256:53585986fd431cd436f290fba662cfb44d9494fbc2949a183de00acc5b33fa88", size = 31735077, upload-time = "2026-01-11T09:58:56.684Z" },
+ { url = "https://files.pythonhosted.org/packages/53/f4/9b63dc70af8636399bd933e9df4f3025a0294609510239782c1b746fc796/av-16.1.0-cp314-cp314t-macosx_11_0_x86_64.whl", hash = "sha256:76f5ed8495cf41e1209a5775d3699dc63fdc1740b94a095e2485f13586593205", size = 27014423, upload-time = "2026-01-11T09:58:59.703Z" },
+ { url = "https://files.pythonhosted.org/packages/d1/da/787a07a0d6ed35a0888d7e5cfb8c2ffa202f38b7ad2c657299fac08eb046/av-16.1.0-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:8d55397190f12a1a3ae7538be58c356cceb2bf50df1b33523817587748ce89e5", size = 21595536, upload-time = "2026-01-11T09:59:02.508Z" },
+ { url = "https://files.pythonhosted.org/packages/d8/f4/9a7d8651a611be6e7e3ab7b30bb43779899c8cac5f7293b9fb634c44a3f3/av-16.1.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:9d51d9037437218261b4bbf9df78a95e216f83d7774fbfe8d289230b5b2e28e2", size = 40642490, upload-time = "2026-01-11T09:59:05.842Z" },
+ { url = "https://files.pythonhosted.org/packages/6b/e4/eb79bc538a94b4ff93cd4237d00939cba797579f3272490dd0144c165a21/av-16.1.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:0ce07a89c15644407f49d942111ca046e323bbab0a9078ff43ee57c9b4a50dad", size = 41976905, upload-time = "2026-01-11T09:59:09.169Z" },
+ { url = "https://files.pythonhosted.org/packages/5e/f5/f6db0dd86b70167a4d55ee0d9d9640983c570d25504f2bde42599f38241e/av-16.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:cac0c074892ea97113b53556ff41c99562db7b9f09f098adac1f08318c2acad5", size = 41770481, upload-time = "2026-01-11T09:59:12.74Z" },
+ { url = "https://files.pythonhosted.org/packages/9e/8b/33651d658e45e16ab7671ea5fcf3d20980ea7983234f4d8d0c63c65581a5/av-16.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:7dec3dcbc35a187ce450f65a2e0dda820d5a9e6553eea8344a1459af11c98649", size = 43036824, upload-time = "2026-01-11T09:59:16.507Z" },
+ { url = "https://files.pythonhosted.org/packages/83/41/7f13361db54d7e02f11552575c0384dadaf0918138f4eaa82ea03a9f9580/av-16.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:6f90dc082ff2068ddbe77618400b44d698d25d9c4edac57459e250c16b33d700", size = 31948164, upload-time = "2026-01-11T09:59:19.501Z" },
+]
+
[[package]]
name = "certifi"
version = "2026.1.4"
@@ -247,6 +269,28 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/0d/4a/331fe2caf6799d591109bb9c08083080f6de90a823695d412a935622abb2/coverage-7.13.4-py3-none-any.whl", hash = "sha256:1af1641e57cf7ba1bd67d677c9abdbcd6cc2ab7da3bca7fa1e2b7e50e65f2ad0", size = 211242, upload-time = "2026-02-09T12:59:02.032Z" },
]
+[[package]]
+name = "ctranslate2"
+version = "4.7.1"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "numpy" },
+ { name = "pyyaml" },
+ { name = "setuptools" },
+]
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/fd/73/8a6b7ba18cad0c8667ee221ddab8c361cb70926440e5b8dd0e81924c28ac/ctranslate2-4.7.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:d5dfb076566551f4959dfd0706f94c923c1931def9b7bb249a2caa6ab23353a0", size = 1257560, upload-time = "2026-02-04T06:12:00.926Z" },
+ { url = "https://files.pythonhosted.org/packages/70/c2/8817ca5d6c1b175b23a12f7c8b91484652f8718a76353317e5919b038733/ctranslate2-4.7.1-cp314-cp314-macosx_11_0_x86_64.whl", hash = "sha256:eecdb4ed934b384f16e8c01b185b082d6b5ffc7dcbb0b6a6eb48cd465282d957", size = 11918995, upload-time = "2026-02-04T06:12:02.875Z" },
+ { url = "https://files.pythonhosted.org/packages/ac/33/b8eb3acc67bbca4d9872fc9ff94db78e6167a7ba5cd932f585d1560effc7/ctranslate2-4.7.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1aa6796edcc3c8d163c9e39c429d50076d266d68980fed9d1b2443f617c67e9e", size = 16844162, upload-time = "2026-02-04T06:12:05.099Z" },
+ { url = "https://files.pythonhosted.org/packages/80/11/6474893b07121057035069a0a483fe1cd8c47878213f282afb4c0c6fc275/ctranslate2-4.7.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:24c0482c51726430fb83724451921c0e539d769c8618dcfd46b1645e7f75960d", size = 38966728, upload-time = "2026-02-04T06:12:07.923Z" },
+ { url = "https://files.pythonhosted.org/packages/94/88/8fc7ff435c5e783e5fad9586d839d463e023988dbbbad949d442092d01f1/ctranslate2-4.7.1-cp314-cp314-win_amd64.whl", hash = "sha256:76db234c0446a23d20dd8eeaa7a789cc87d1d05283f48bf3152bae9fa0a69844", size = 19100788, upload-time = "2026-02-04T06:12:10.592Z" },
+ { url = "https://files.pythonhosted.org/packages/d9/b3/f100013a76a98d64e67c721bd4559ea4eeb54be3e4ac45f4d801769899af/ctranslate2-4.7.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:058c9db2277dc8b19ecc86c7937628f69022f341844b9081d2ab642965d88fc6", size = 1280179, upload-time = "2026-02-04T06:12:12.596Z" },
+ { url = "https://files.pythonhosted.org/packages/39/22/b77f748015667a5e2ca54a5ee080d7016fce34314f0e8cf904784549305a/ctranslate2-4.7.1-cp314-cp314t-macosx_11_0_x86_64.whl", hash = "sha256:5abcf885062c7f28a3f9a46be8d185795e8706ac6230ad086cae0bc82917df31", size = 11940166, upload-time = "2026-02-04T06:12:14.054Z" },
+ { url = "https://files.pythonhosted.org/packages/7d/78/6d7fd52f646c6ba3343f71277a9bbef33734632949d1651231948b0f0359/ctranslate2-4.7.1-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9950acb04a002d5c60ae90a1ddceead1a803af1f00cadd9b1a1dc76e1f017481", size = 16849483, upload-time = "2026-02-04T06:12:17.082Z" },
+ { url = "https://files.pythonhosted.org/packages/40/27/58769ff15ac31b44205bd7a8aeca80cf7357c657ea5df1b94ce0f5c83771/ctranslate2-4.7.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1dcc734e92e3f1ceeaa0c42bbfd009352857be179ecd4a7ed6cccc086a202f58", size = 38949393, upload-time = "2026-02-04T06:12:21.302Z" },
+ { url = "https://files.pythonhosted.org/packages/0e/5c/9fa0ad6462b62efd0fb5ac1100eee47bc96ecc198ff4e237c731e5473616/ctranslate2-4.7.1-cp314-cp314t-win_amd64.whl", hash = "sha256:dfb7657bdb7b8211c8f9ecb6f3b70bc0db0e0384d01a8b1808cb66fe7199df59", size = 19123451, upload-time = "2026-02-04T06:12:24.115Z" },
+]
+
[[package]]
name = "discord-py"
version = "2.6.4"
@@ -396,6 +440,39 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/85/11/0aa8455af26f0ae89e42be67f3a874255ee5d7f0f026fc86e8d56f76b428/fastar-0.8.0-cp314-cp314t-win_arm64.whl", hash = "sha256:e59673307b6a08210987059a2bdea2614fe26e3335d0e5d1a3d95f49a05b1418", size = 460467, upload-time = "2025-11-26T02:36:07.978Z" },
]
+[[package]]
+name = "faster-whisper"
+version = "1.2.1"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "av" },
+ { name = "ctranslate2" },
+ { name = "huggingface-hub" },
+ { name = "onnxruntime" },
+ { name = "tokenizers" },
+ { name = "tqdm" },
+]
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/05/99/49ee85903dee060d9f08297b4a342e5e0bcfca2f027a07b4ee0a38ab13f9/faster_whisper-1.2.1-py3-none-any.whl", hash = "sha256:79a66ad50688c0b794dd501dc340a736992a6342f7f95e5811be60b5224a26a7", size = 1118909, upload-time = "2025-10-31T11:35:47.794Z" },
+]
+
+[[package]]
+name = "filelock"
+version = "3.24.2"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/02/a8/dae62680be63cbb3ff87cfa2f51cf766269514ea5488479d42fec5aa6f3a/filelock-3.24.2.tar.gz", hash = "sha256:c22803117490f156e59fafce621f0550a7a853e2bbf4f87f112b11d469b6c81b", size = 37601, upload-time = "2026-02-16T02:50:45.614Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/e7/04/a94ebfb4eaaa08db56725a40de2887e95de4e8641b9e902c311bfa00aa39/filelock-3.24.2-py3-none-any.whl", hash = "sha256:667d7dc0b7d1e1064dd5f8f8e80bdac157a6482e8d2e02cd16fd3b6b33bd6556", size = 24152, upload-time = "2026-02-16T02:50:44Z" },
+]
+
+[[package]]
+name = "flatbuffers"
+version = "25.12.19"
+source = { registry = "https://pypi.org/simple" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/e8/2d/d2a548598be01649e2d46231d151a6c56d10b964d94043a335ae56ea2d92/flatbuffers-25.12.19-py2.py3-none-any.whl", hash = "sha256:7634f50c427838bb021c2d66a3d1168e9d199b0607e6329399f04846d42e20b4", size = 26661, upload-time = "2025-12-19T23:16:13.622Z" },
+]
+
[[package]]
name = "free-claude-code"
version = "2.0.0"
@@ -415,6 +492,11 @@ dependencies = [
{ name = "uvicorn" },
]
+[package.optional-dependencies]
+voice = [
+ { name = "faster-whisper" },
+]
+
[package.dev-dependencies]
dev = [
{ name = "pytest" },
@@ -428,6 +510,7 @@ dev = [
requires-dist = [
{ name = "discord-py", specifier = ">=2.0.0" },
{ name = "fastapi", extras = ["standard"], specifier = ">=0.115.11" },
+ { name = "faster-whisper", marker = "extra == 'voice'", specifier = ">=1.0.0" },
{ name = "httpx", specifier = ">=0.25.0" },
{ name = "loguru", specifier = ">=0.7.0" },
{ name = "markdown-it-py", specifier = ">=3.0.0" },
@@ -439,6 +522,7 @@ requires-dist = [
{ name = "tiktoken", specifier = ">=0.7.0" },
{ name = "uvicorn", specifier = ">=0.34.0" },
]
+provides-extras = ["voice"]
[package.metadata.requires-dev]
dev = [
@@ -490,6 +574,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/9a/9a/e35b4a917281c0b8419d4207f4334c8e8c5dbf4f3f5f9ada73958d937dcc/frozenlist-1.8.0-py3-none-any.whl", hash = "sha256:0c18a16eab41e82c295618a77502e17b195883241c563b00f0aa5106fc4eaa0d", size = 13409, upload-time = "2025-10-06T05:38:16.721Z" },
]
+[[package]]
+name = "fsspec"
+version = "2026.2.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/51/7c/f60c259dcbf4f0c47cc4ddb8f7720d2dcdc8888c8e5ad84c73ea4531cc5b/fsspec-2026.2.0.tar.gz", hash = "sha256:6544e34b16869f5aacd5b90bdf1a71acb37792ea3ddf6125ee69a22a53fb8bff", size = 313441, upload-time = "2026-02-05T21:50:53.743Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/e6/ab/fb21f4c939bb440104cc2b396d3be1d9b7a9fd3c6c2a53d98c45b3d7c954/fsspec-2026.2.0-py3-none-any.whl", hash = "sha256:98de475b5cb3bd66bedd5c4679e87b4fdfe1a3bf4d707b151b3c07e58c9a2437", size = 202505, upload-time = "2026-02-05T21:50:51.819Z" },
+]
+
[[package]]
name = "h11"
version = "0.16.0"
@@ -499,6 +592,28 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" },
]
+[[package]]
+name = "hf-xet"
+version = "1.2.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/5e/6e/0f11bacf08a67f7fb5ee09740f2ca54163863b07b70d579356e9222ce5d8/hf_xet-1.2.0.tar.gz", hash = "sha256:a8c27070ca547293b6890c4bf389f713f80e8c478631432962bb7f4bc0bd7d7f", size = 506020, upload-time = "2025-10-24T19:04:32.129Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/e2/51/f7e2caae42f80af886db414d4e9885fac959330509089f97cccb339c6b87/hf_xet-1.2.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:10bfab528b968c70e062607f663e21e34e2bba349e8038db546646875495179e", size = 2861861, upload-time = "2025-10-24T19:04:19.01Z" },
+ { url = "https://files.pythonhosted.org/packages/6e/1d/a641a88b69994f9371bd347f1dd35e5d1e2e2460a2e350c8d5165fc62005/hf_xet-1.2.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2a212e842647b02eb6a911187dc878e79c4aa0aa397e88dd3b26761676e8c1f8", size = 2717699, upload-time = "2025-10-24T19:04:17.306Z" },
+ { url = "https://files.pythonhosted.org/packages/df/e0/e5e9bba7d15f0318955f7ec3f4af13f92e773fbb368c0b8008a5acbcb12f/hf_xet-1.2.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:30e06daccb3a7d4c065f34fc26c14c74f4653069bb2b194e7f18f17cbe9939c0", size = 3314885, upload-time = "2025-10-24T19:04:07.642Z" },
+ { url = "https://files.pythonhosted.org/packages/21/90/b7fe5ff6f2b7b8cbdf1bd56145f863c90a5807d9758a549bf3d916aa4dec/hf_xet-1.2.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:29c8fc913a529ec0a91867ce3d119ac1aac966e098cf49501800c870328cc090", size = 3221550, upload-time = "2025-10-24T19:04:05.55Z" },
+ { url = "https://files.pythonhosted.org/packages/6f/cb/73f276f0a7ce46cc6a6ec7d6c7d61cbfe5f2e107123d9bbd0193c355f106/hf_xet-1.2.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e159cbfcfbb29f920db2c09ed8b660eb894640d284f102ada929b6e3dc410a", size = 3408010, upload-time = "2025-10-24T19:04:28.598Z" },
+ { url = "https://files.pythonhosted.org/packages/b8/1e/d642a12caa78171f4be64f7cd9c40e3ca5279d055d0873188a58c0f5fbb9/hf_xet-1.2.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:9c91d5ae931510107f148874e9e2de8a16052b6f1b3ca3c1b12f15ccb491390f", size = 3503264, upload-time = "2025-10-24T19:04:30.397Z" },
+ { url = "https://files.pythonhosted.org/packages/17/b5/33764714923fa1ff922770f7ed18c2daae034d21ae6e10dbf4347c854154/hf_xet-1.2.0-cp314-cp314t-win_amd64.whl", hash = "sha256:210d577732b519ac6ede149d2f2f34049d44e8622bf14eb3d63bbcd2d4b332dc", size = 2901071, upload-time = "2025-10-24T19:04:37.463Z" },
+ { url = "https://files.pythonhosted.org/packages/96/2d/22338486473df5923a9ab7107d375dbef9173c338ebef5098ef593d2b560/hf_xet-1.2.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:46740d4ac024a7ca9b22bebf77460ff43332868b661186a8e46c227fdae01848", size = 2866099, upload-time = "2025-10-24T19:04:15.366Z" },
+ { url = "https://files.pythonhosted.org/packages/7f/8c/c5becfa53234299bc2210ba314eaaae36c2875e0045809b82e40a9544f0c/hf_xet-1.2.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:27df617a076420d8845bea087f59303da8be17ed7ec0cd7ee3b9b9f579dff0e4", size = 2722178, upload-time = "2025-10-24T19:04:13.695Z" },
+ { url = "https://files.pythonhosted.org/packages/9a/92/cf3ab0b652b082e66876d08da57fcc6fa2f0e6c70dfbbafbd470bb73eb47/hf_xet-1.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3651fd5bfe0281951b988c0facbe726aa5e347b103a675f49a3fa8144c7968fd", size = 3320214, upload-time = "2025-10-24T19:04:03.596Z" },
+ { url = "https://files.pythonhosted.org/packages/46/92/3f7ec4a1b6a65bf45b059b6d4a5d38988f63e193056de2f420137e3c3244/hf_xet-1.2.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:d06fa97c8562fb3ee7a378dd9b51e343bc5bc8190254202c9771029152f5e08c", size = 3229054, upload-time = "2025-10-24T19:04:01.949Z" },
+ { url = "https://files.pythonhosted.org/packages/0b/dd/7ac658d54b9fb7999a0ccb07ad863b413cbaf5cf172f48ebcd9497ec7263/hf_xet-1.2.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:4c1428c9ae73ec0939410ec73023c4f842927f39db09b063b9482dac5a3bb737", size = 3413812, upload-time = "2025-10-24T19:04:24.585Z" },
+ { url = "https://files.pythonhosted.org/packages/92/68/89ac4e5b12a9ff6286a12174c8538a5930e2ed662091dd2572bbe0a18c8a/hf_xet-1.2.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a55558084c16b09b5ed32ab9ed38421e2d87cf3f1f89815764d1177081b99865", size = 3508920, upload-time = "2025-10-24T19:04:26.927Z" },
+ { url = "https://files.pythonhosted.org/packages/cb/44/870d44b30e1dcfb6a65932e3e1506c103a8a5aea9103c337e7a53180322c/hf_xet-1.2.0-cp37-abi3-win_amd64.whl", hash = "sha256:e6584a52253f72c9f52f9e549d5895ca7a471608495c4ecaa6cc73dba2b24d69", size = 2905735, upload-time = "2025-10-24T19:04:35.928Z" },
+]
+
[[package]]
name = "httpcore"
version = "1.0.9"
@@ -542,6 +657,27 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" },
]
+[[package]]
+name = "huggingface-hub"
+version = "1.4.1"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "filelock" },
+ { name = "fsspec" },
+ { name = "hf-xet", marker = "platform_machine == 'AMD64' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'" },
+ { name = "httpx" },
+ { name = "packaging" },
+ { name = "pyyaml" },
+ { name = "shellingham" },
+ { name = "tqdm" },
+ { name = "typer-slim" },
+ { name = "typing-extensions" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/c4/fc/eb9bc06130e8bbda6a616e1b80a7aa127681c448d6b49806f61db2670b61/huggingface_hub-1.4.1.tar.gz", hash = "sha256:b41131ec35e631e7383ab26d6146b8d8972abc8b6309b963b306fbcca87f5ed5", size = 642156, upload-time = "2026-02-06T09:20:03.013Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/d5/ae/2f6d96b4e6c5478d87d606a1934b5d436c4a2bce6bb7c6fdece891c128e3/huggingface_hub-1.4.1-py3-none-any.whl", hash = "sha256:9931d075fb7a79af5abc487106414ec5fba2c0ae86104c0c62fd6cae38873d18", size = 553326, upload-time = "2026-02-06T09:20:00.728Z" },
+]
+
[[package]]
name = "idna"
version = "3.11"
@@ -669,6 +805,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" },
]
+[[package]]
+name = "mpmath"
+version = "1.3.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/e0/47/dd32fa426cc72114383ac549964eecb20ecfd886d1e5ccf5340b55b02f57/mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f", size = 508106, upload-time = "2023-03-07T16:47:11.061Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c", size = 536198, upload-time = "2023-03-07T16:47:09.197Z" },
+]
+
[[package]]
name = "multidict"
version = "6.7.1"
@@ -714,6 +859,55 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/81/08/7036c080d7117f28a4af526d794aab6a84463126db031b007717c1a6676e/multidict-6.7.1-py3-none-any.whl", hash = "sha256:55d97cc6dae627efa6a6e548885712d4864b81110ac76fa4e534c03819fa4a56", size = 12319, upload-time = "2026-01-26T02:46:44.004Z" },
]
+[[package]]
+name = "numpy"
+version = "2.4.2"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/57/fd/0005efbd0af48e55eb3c7208af93f2862d4b1a56cd78e84309a2d959208d/numpy-2.4.2.tar.gz", hash = "sha256:659a6107e31a83c4e33f763942275fd278b21d095094044eb35569e86a21ddae", size = 20723651, upload-time = "2026-01-31T23:13:10.135Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/18/88/b7df6050bf18fdcfb7046286c6535cabbdd2064a3440fca3f069d319c16e/numpy-2.4.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:444be170853f1f9d528428eceb55f12918e4fda5d8805480f36a002f1415e09b", size = 16663092, upload-time = "2026-01-31T23:12:04.521Z" },
+ { url = "https://files.pythonhosted.org/packages/25/7a/1fee4329abc705a469a4afe6e69b1ef7e915117747886327104a8493a955/numpy-2.4.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:d1240d50adff70c2a88217698ca844723068533f3f5c5fa6ee2e3220e3bdb000", size = 14698770, upload-time = "2026-01-31T23:12:06.96Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/0b/f9e49ba6c923678ad5bc38181c08ac5e53b7a5754dbca8e581aa1a56b1ff/numpy-2.4.2-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:7cdde6de52fb6664b00b056341265441192d1291c130e99183ec0d4b110ff8b1", size = 5208562, upload-time = "2026-01-31T23:12:09.632Z" },
+ { url = "https://files.pythonhosted.org/packages/7d/12/d7de8f6f53f9bb76997e5e4c069eda2051e3fe134e9181671c4391677bb2/numpy-2.4.2-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:cda077c2e5b780200b6b3e09d0b42205a3d1c68f30c6dceb90401c13bff8fe74", size = 6543710, upload-time = "2026-01-31T23:12:11.969Z" },
+ { url = "https://files.pythonhosted.org/packages/09/63/c66418c2e0268a31a4cf8a8b512685748200f8e8e8ec6c507ce14e773529/numpy-2.4.2-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d30291931c915b2ab5717c2974bb95ee891a1cf22ebc16a8006bd59cd210d40a", size = 15677205, upload-time = "2026-01-31T23:12:14.33Z" },
+ { url = "https://files.pythonhosted.org/packages/5d/6c/7f237821c9642fb2a04d2f1e88b4295677144ca93285fd76eff3bcba858d/numpy-2.4.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bba37bc29d4d85761deed3954a1bc62be7cf462b9510b51d367b769a8c8df325", size = 16611738, upload-time = "2026-01-31T23:12:16.525Z" },
+ { url = "https://files.pythonhosted.org/packages/c2/a7/39c4cdda9f019b609b5c473899d87abff092fc908cfe4d1ecb2fcff453b0/numpy-2.4.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:b2f0073ed0868db1dcd86e052d37279eef185b9c8db5bf61f30f46adac63c909", size = 17028888, upload-time = "2026-01-31T23:12:19.306Z" },
+ { url = "https://files.pythonhosted.org/packages/da/b3/e84bb64bdfea967cc10950d71090ec2d84b49bc691df0025dddb7c26e8e3/numpy-2.4.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:7f54844851cdb630ceb623dcec4db3240d1ac13d4990532446761baede94996a", size = 18339556, upload-time = "2026-01-31T23:12:21.816Z" },
+ { url = "https://files.pythonhosted.org/packages/88/f5/954a291bc1192a27081706862ac62bb5920fbecfbaa302f64682aa90beed/numpy-2.4.2-cp314-cp314-win32.whl", hash = "sha256:12e26134a0331d8dbd9351620f037ec470b7c75929cb8a1537f6bfe411152a1a", size = 6006899, upload-time = "2026-01-31T23:12:24.14Z" },
+ { url = "https://files.pythonhosted.org/packages/05/cb/eff72a91b2efdd1bc98b3b8759f6a1654aa87612fc86e3d87d6fe4f948c4/numpy-2.4.2-cp314-cp314-win_amd64.whl", hash = "sha256:068cdb2d0d644cdb45670810894f6a0600797a69c05f1ac478e8d31670b8ee75", size = 12443072, upload-time = "2026-01-31T23:12:26.33Z" },
+ { url = "https://files.pythonhosted.org/packages/37/75/62726948db36a56428fce4ba80a115716dc4fad6a3a4352487f8bb950966/numpy-2.4.2-cp314-cp314-win_arm64.whl", hash = "sha256:6ed0be1ee58eef41231a5c943d7d1375f093142702d5723ca2eb07db9b934b05", size = 10494886, upload-time = "2026-01-31T23:12:28.488Z" },
+ { url = "https://files.pythonhosted.org/packages/36/2f/ee93744f1e0661dc267e4b21940870cabfae187c092e1433b77b09b50ac4/numpy-2.4.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:98f16a80e917003a12c0580f97b5f875853ebc33e2eaa4bccfc8201ac6869308", size = 14818567, upload-time = "2026-01-31T23:12:30.709Z" },
+ { url = "https://files.pythonhosted.org/packages/a7/24/6535212add7d76ff938d8bdc654f53f88d35cddedf807a599e180dcb8e66/numpy-2.4.2-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:20abd069b9cda45874498b245c8015b18ace6de8546bf50dfa8cea1696ed06ef", size = 5328372, upload-time = "2026-01-31T23:12:32.962Z" },
+ { url = "https://files.pythonhosted.org/packages/5e/9d/c48f0a035725f925634bf6b8994253b43f2047f6778a54147d7e213bc5a7/numpy-2.4.2-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:e98c97502435b53741540a5717a6749ac2ada901056c7db951d33e11c885cc7d", size = 6649306, upload-time = "2026-01-31T23:12:34.797Z" },
+ { url = "https://files.pythonhosted.org/packages/81/05/7c73a9574cd4a53a25907bad38b59ac83919c0ddc8234ec157f344d57d9a/numpy-2.4.2-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:da6cad4e82cb893db4b69105c604d805e0c3ce11501a55b5e9f9083b47d2ffe8", size = 15722394, upload-time = "2026-01-31T23:12:36.565Z" },
+ { url = "https://files.pythonhosted.org/packages/35/fa/4de10089f21fc7d18442c4a767ab156b25c2a6eaf187c0db6d9ecdaeb43f/numpy-2.4.2-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9e4424677ce4b47fe73c8b5556d876571f7c6945d264201180db2dc34f676ab5", size = 16653343, upload-time = "2026-01-31T23:12:39.188Z" },
+ { url = "https://files.pythonhosted.org/packages/b8/f9/d33e4ffc857f3763a57aa85650f2e82486832d7492280ac21ba9efda80da/numpy-2.4.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:2b8f157c8a6f20eb657e240f8985cc135598b2b46985c5bccbde7616dc9c6b1e", size = 17078045, upload-time = "2026-01-31T23:12:42.041Z" },
+ { url = "https://files.pythonhosted.org/packages/c8/b8/54bdb43b6225badbea6389fa038c4ef868c44f5890f95dd530a218706da3/numpy-2.4.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5daf6f3914a733336dab21a05cdec343144600e964d2fcdabaac0c0269874b2a", size = 18380024, upload-time = "2026-01-31T23:12:44.331Z" },
+ { url = "https://files.pythonhosted.org/packages/a5/55/6e1a61ded7af8df04016d81b5b02daa59f2ea9252ee0397cb9f631efe9e5/numpy-2.4.2-cp314-cp314t-win32.whl", hash = "sha256:8c50dd1fc8826f5b26a5ee4d77ca55d88a895f4e4819c7ecc2a9f5905047a443", size = 6153937, upload-time = "2026-01-31T23:12:47.229Z" },
+ { url = "https://files.pythonhosted.org/packages/45/aa/fa6118d1ed6d776b0983f3ceac9b1a5558e80df9365b1c3aa6d42bf9eee4/numpy-2.4.2-cp314-cp314t-win_amd64.whl", hash = "sha256:fcf92bee92742edd401ba41135185866f7026c502617f422eb432cfeca4fe236", size = 12631844, upload-time = "2026-01-31T23:12:48.997Z" },
+ { url = "https://files.pythonhosted.org/packages/32/0a/2ec5deea6dcd158f254a7b372fb09cfba5719419c8d66343bab35237b3fb/numpy-2.4.2-cp314-cp314t-win_arm64.whl", hash = "sha256:1f92f53998a17265194018d1cc321b2e96e900ca52d54c7c77837b71b9465181", size = 10565379, upload-time = "2026-01-31T23:12:51.345Z" },
+]
+
+[[package]]
+name = "onnxruntime"
+version = "1.24.1"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "flatbuffers" },
+ { name = "numpy" },
+ { name = "packaging" },
+ { name = "protobuf" },
+ { name = "sympy" },
+]
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/87/23/167d964414cee2af9c72af323b28d2c4cb35beed855c830a23f198265c79/onnxruntime-1.24.1-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:890c503ca187bc883c3aa72c53f2a604ec8e8444bdd1bf6ac243ec6d5e085202", size = 17214004, upload-time = "2026-02-05T17:31:11.917Z" },
+ { url = "https://files.pythonhosted.org/packages/b4/24/6e5558fdd51027d6830cf411bc003ae12c64054826382e2fab89e99486a0/onnxruntime-1.24.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4da1b84b3bdeec543120df169e5e62a1445bf732fc2c7fb036c2f8a4090455e8", size = 15017034, upload-time = "2026-02-05T17:31:04.331Z" },
+ { url = "https://files.pythonhosted.org/packages/91/d4/3cb1c9eaae1103265ed7eb00a3eaeb0d9ba51dc88edc398b7071c9553bed/onnxruntime-1.24.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:557753ec345efa227c6a65139f3d29c76330fcbd54cc10dd1b64232ebb939c13", size = 17097531, upload-time = "2026-02-05T17:31:40.303Z" },
+ { url = "https://files.pythonhosted.org/packages/0f/da/4522b199c12db7c5b46aaf265ee0d741abe65ea912f6c0aaa2cc18a4654d/onnxruntime-1.24.1-cp314-cp314-win_amd64.whl", hash = "sha256:ea4942104805e868f3ddddfa1fbb58b04503a534d489ab2d1452bbfa345c78c2", size = 12795556, upload-time = "2026-02-05T17:32:11.886Z" },
+ { url = "https://files.pythonhosted.org/packages/a1/53/3b8969417276b061ff04502ccdca9db4652d397abbeb06c9f6ae05cec9ca/onnxruntime-1.24.1-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ea8963a99e0f10489acdf00ef3383c3232b7e44aa497b063c63be140530d9f85", size = 15025434, upload-time = "2026-02-05T17:31:06.942Z" },
+ { url = "https://files.pythonhosted.org/packages/ab/a2/cfcf009eb38d90cc628c087b6506b3dfe1263387f3cbbf8d272af4fef957/onnxruntime-1.24.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:34488aa760fb5c2e6d06a7ca9241124eb914a6a06f70936a14c669d1b3df9598", size = 17099815, upload-time = "2026-02-05T17:31:43.092Z" },
+]
+
[[package]]
name = "openai"
version = "2.21.0"
@@ -790,6 +984,21 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/5b/5a/bc7b4a4ef808fa59a816c17b20c4bef6884daebbdf627ff2a161da67da19/propcache-0.4.1-py3-none-any.whl", hash = "sha256:af2a6052aeb6cf17d3e46ee169099044fd8224cbaf75c76a2ef596e8163e2237", size = 13305, upload-time = "2025-10-08T19:49:00.792Z" },
]
+[[package]]
+name = "protobuf"
+version = "6.33.5"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/ba/25/7c72c307aafc96fa87062aa6291d9f7c94836e43214d43722e86037aac02/protobuf-6.33.5.tar.gz", hash = "sha256:6ddcac2a081f8b7b9642c09406bc6a4290128fce5f471cddd165960bb9119e5c", size = 444465, upload-time = "2026-01-29T21:51:33.494Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/b1/79/af92d0a8369732b027e6d6084251dd8e782c685c72da161bd4a2e00fbabb/protobuf-6.33.5-cp310-abi3-win32.whl", hash = "sha256:d71b040839446bac0f4d162e758bea99c8251161dae9d0983a3b88dee345153b", size = 425769, upload-time = "2026-01-29T21:51:21.751Z" },
+ { url = "https://files.pythonhosted.org/packages/55/75/bb9bc917d10e9ee13dee8607eb9ab963b7cf8be607c46e7862c748aa2af7/protobuf-6.33.5-cp310-abi3-win_amd64.whl", hash = "sha256:3093804752167bcab3998bec9f1048baae6e29505adaf1afd14a37bddede533c", size = 437118, upload-time = "2026-01-29T21:51:24.022Z" },
+ { url = "https://files.pythonhosted.org/packages/a2/6b/e48dfc1191bc5b52950246275bf4089773e91cb5ba3592621723cdddca62/protobuf-6.33.5-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:a5cb85982d95d906df1e2210e58f8e4f1e3cdc088e52c921a041f9c9a0386de5", size = 427766, upload-time = "2026-01-29T21:51:25.413Z" },
+ { url = "https://files.pythonhosted.org/packages/4e/b1/c79468184310de09d75095ed1314b839eb2f72df71097db9d1404a1b2717/protobuf-6.33.5-cp39-abi3-manylinux2014_aarch64.whl", hash = "sha256:9b71e0281f36f179d00cbcb119cb19dec4d14a81393e5ea220f64b286173e190", size = 324638, upload-time = "2026-01-29T21:51:26.423Z" },
+ { url = "https://files.pythonhosted.org/packages/c5/f5/65d838092fd01c44d16037953fd4c2cc851e783de9b8f02b27ec4ffd906f/protobuf-6.33.5-cp39-abi3-manylinux2014_s390x.whl", hash = "sha256:8afa18e1d6d20af15b417e728e9f60f3aa108ee76f23c3b2c07a2c3b546d3afd", size = 339411, upload-time = "2026-01-29T21:51:27.446Z" },
+ { url = "https://files.pythonhosted.org/packages/9b/53/a9443aa3ca9ba8724fdfa02dd1887c1bcd8e89556b715cfbacca6b63dbec/protobuf-6.33.5-cp39-abi3-manylinux2014_x86_64.whl", hash = "sha256:cbf16ba3350fb7b889fca858fb215967792dc125b35c7976ca4818bee3521cf0", size = 323465, upload-time = "2026-01-29T21:51:28.925Z" },
+ { url = "https://files.pythonhosted.org/packages/57/bf/2086963c69bdac3d7cff1cc7ff79b8ce5ea0bec6797a017e1be338a46248/protobuf-6.33.5-py3-none-any.whl", hash = "sha256:69915a973dd0f60f31a08b8318b73eab2bd6a392c79184b3612226b0a3f8ec02", size = 170687, upload-time = "2026-01-29T21:51:32.557Z" },
+]
+
[[package]]
name = "pydantic"
version = "2.12.5"
@@ -1142,6 +1351,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/ca/63/2c6daf59d86b1c30600bff679d039f57fd1932af82c43c0bde1cbc55e8d4/sentry_sdk-2.52.0-py2.py3-none-any.whl", hash = "sha256:931c8f86169fc6f2752cb5c4e6480f0d516112e78750c312e081ababecbaf2ed", size = 435547, upload-time = "2026-02-04T15:03:51.567Z" },
]
+[[package]]
+name = "setuptools"
+version = "82.0.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/82/f3/748f4d6f65d1756b9ae577f329c951cda23fb900e4de9f70900ced962085/setuptools-82.0.0.tar.gz", hash = "sha256:22e0a2d69474c6ae4feb01951cb69d515ed23728cf96d05513d36e42b62b37cb", size = 1144893, upload-time = "2026-02-08T15:08:40.206Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/e1/c6/76dc613121b793286a3f91621d7b75a2b493e0390ddca50f11993eadf192/setuptools-82.0.0-py3-none-any.whl", hash = "sha256:70b18734b607bd1da571d097d236cfcfacaf01de45717d59e6e04b96877532e0", size = 1003468, upload-time = "2026-02-08T15:08:38.723Z" },
+]
+
[[package]]
name = "shellingham"
version = "1.5.4"
@@ -1172,6 +1390,18 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/81/0d/13d1d239a25cbfb19e740db83143e95c772a1fe10202dda4b76792b114dd/starlette-0.52.1-py3-none-any.whl", hash = "sha256:0029d43eb3d273bc4f83a08720b4912ea4b071087a3b48db01b7c839f7954d74", size = 74272, upload-time = "2026-01-18T13:34:09.188Z" },
]
+[[package]]
+name = "sympy"
+version = "1.14.0"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "mpmath" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/83/d3/803453b36afefb7c2bb238361cd4ae6125a569b4db67cd9e79846ba2d68c/sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517", size = 7793921, upload-time = "2025-04-27T18:05:01.611Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/a2/09/77d55d46fd61b4a135c444fc97158ef34a095e5681d0a6c10b75bf356191/sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5", size = 6299353, upload-time = "2025-04-27T18:04:59.103Z" },
+]
+
[[package]]
name = "tiktoken"
version = "0.12.0"
@@ -1198,6 +1428,32 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/af/df/c7891ef9d2712ad774777271d39fdef63941ffba0a9d59b7ad1fd2765e57/tiktoken-0.12.0-cp314-cp314t-win_amd64.whl", hash = "sha256:f61c0aea5565ac82e2ec50a05e02a6c44734e91b51c10510b084ea1b8e633a71", size = 920667, upload-time = "2025-10-06T20:22:34.444Z" },
]
+[[package]]
+name = "tokenizers"
+version = "0.22.2"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "huggingface-hub" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/73/6f/f80cfef4a312e1fb34baf7d85c72d4411afde10978d4657f8cdd811d3ccc/tokenizers-0.22.2.tar.gz", hash = "sha256:473b83b915e547aa366d1eee11806deaf419e17be16310ac0a14077f1e28f917", size = 372115, upload-time = "2026-01-05T10:45:15.988Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/92/97/5dbfabf04c7e348e655e907ed27913e03db0923abb5dfdd120d7b25630e1/tokenizers-0.22.2-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:544dd704ae7238755d790de45ba8da072e9af3eea688f698b137915ae959281c", size = 3100275, upload-time = "2026-01-05T10:41:02.158Z" },
+ { url = "https://files.pythonhosted.org/packages/2e/47/174dca0502ef88b28f1c9e06b73ce33500eedfac7a7692108aec220464e7/tokenizers-0.22.2-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:1e418a55456beedca4621dbab65a318981467a2b188e982a23e117f115ce5001", size = 2981472, upload-time = "2026-01-05T10:41:00.276Z" },
+ { url = "https://files.pythonhosted.org/packages/d6/84/7990e799f1309a8b87af6b948f31edaa12a3ed22d11b352eaf4f4b2e5753/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2249487018adec45d6e3554c71d46eb39fa8ea67156c640f7513eb26f318cec7", size = 3290736, upload-time = "2026-01-05T10:40:32.165Z" },
+ { url = "https://files.pythonhosted.org/packages/78/59/09d0d9ba94dcd5f4f1368d4858d24546b4bdc0231c2354aa31d6199f0399/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:25b85325d0815e86e0bac263506dd114578953b7b53d7de09a6485e4a160a7dd", size = 3168835, upload-time = "2026-01-05T10:40:38.847Z" },
+ { url = "https://files.pythonhosted.org/packages/47/50/b3ebb4243e7160bda8d34b731e54dd8ab8b133e50775872e7a434e524c28/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bfb88f22a209ff7b40a576d5324bf8286b519d7358663db21d6246fb17eea2d5", size = 3521673, upload-time = "2026-01-05T10:40:56.614Z" },
+ { url = "https://files.pythonhosted.org/packages/e0/fa/89f4cb9e08df770b57adb96f8cbb7e22695a4cb6c2bd5f0c4f0ebcf33b66/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1c774b1276f71e1ef716e5486f21e76333464f47bece56bbd554485982a9e03e", size = 3724818, upload-time = "2026-01-05T10:40:44.507Z" },
+ { url = "https://files.pythonhosted.org/packages/64/04/ca2363f0bfbe3b3d36e95bf67e56a4c88c8e3362b658e616d1ac185d47f2/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:df6c4265b289083bf710dff49bc51ef252f9d5be33a45ee2bed151114a56207b", size = 3379195, upload-time = "2026-01-05T10:40:51.139Z" },
+ { url = "https://files.pythonhosted.org/packages/2e/76/932be4b50ef6ccedf9d3c6639b056a967a86258c6d9200643f01269211ca/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:369cc9fc8cc10cb24143873a0d95438bb8ee257bb80c71989e3ee290e8d72c67", size = 3274982, upload-time = "2026-01-05T10:40:58.331Z" },
+ { url = "https://files.pythonhosted.org/packages/1d/28/5f9f5a4cc211b69e89420980e483831bcc29dade307955cc9dc858a40f01/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:29c30b83d8dcd061078b05ae0cb94d3c710555fbb44861139f9f83dcca3dc3e4", size = 9478245, upload-time = "2026-01-05T10:41:04.053Z" },
+ { url = "https://files.pythonhosted.org/packages/6c/fb/66e2da4704d6aadebf8cb39f1d6d1957df667ab24cff2326b77cda0dcb85/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:37ae80a28c1d3265bb1f22464c856bd23c02a05bb211e56d0c5301a435be6c1a", size = 9560069, upload-time = "2026-01-05T10:45:10.673Z" },
+ { url = "https://files.pythonhosted.org/packages/16/04/fed398b05caa87ce9b1a1bb5166645e38196081b225059a6edaff6440fac/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:791135ee325f2336f498590eb2f11dc5c295232f288e75c99a36c5dbce63088a", size = 9899263, upload-time = "2026-01-05T10:45:12.559Z" },
+ { url = "https://files.pythonhosted.org/packages/05/a1/d62dfe7376beaaf1394917e0f8e93ee5f67fea8fcf4107501db35996586b/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:38337540fbbddff8e999d59970f3c6f35a82de10053206a7562f1ea02d046fa5", size = 10033429, upload-time = "2026-01-05T10:45:14.333Z" },
+ { url = "https://files.pythonhosted.org/packages/fd/18/a545c4ea42af3df6effd7d13d250ba77a0a86fb20393143bbb9a92e434d4/tokenizers-0.22.2-cp39-abi3-win32.whl", hash = "sha256:a6bf3f88c554a2b653af81f3204491c818ae2ac6fbc09e76ef4773351292bc92", size = 2502363, upload-time = "2026-01-05T10:45:20.593Z" },
+ { url = "https://files.pythonhosted.org/packages/65/71/0670843133a43d43070abeb1949abfdef12a86d490bea9cd9e18e37c5ff7/tokenizers-0.22.2-cp39-abi3-win_amd64.whl", hash = "sha256:c9ea31edff2968b44a88f97d784c2f16dc0729b8b143ed004699ebca91f05c48", size = 2747786, upload-time = "2026-01-05T10:45:18.411Z" },
+ { url = "https://files.pythonhosted.org/packages/72/f4/0de46cfa12cdcbcd464cc59fde36912af405696f687e53a091fb432f694c/tokenizers-0.22.2-cp39-abi3-win_arm64.whl", hash = "sha256:9ce725d22864a1e965217204946f830c37876eee3b2ba6fc6255e8e903d5fcbc", size = 2612133, upload-time = "2026-01-05T10:45:17.232Z" },
+]
+
[[package]]
name = "tqdm"
version = "4.67.3"
@@ -1249,6 +1505,18 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/d5/91/9b286ab899c008c2cb05e8be99814807e7fbbd33f0c0c960470826e5ac82/typer-0.23.1-py3-none-any.whl", hash = "sha256:3291ad0d3c701cbf522012faccfbb29352ff16ad262db2139e6b01f15781f14e", size = 56813, upload-time = "2026-02-13T10:04:32.008Z" },
]
+[[package]]
+name = "typer-slim"
+version = "0.23.1"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "typer" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/da/22/b9c47b8655937b6877d40791b937931702ba9c5f9d28753199266aa96f50/typer_slim-0.23.1.tar.gz", hash = "sha256:dfe92a6317030ee2380f65bf92e540d7c77fefcc689e10d585b4925b45b5e06a", size = 4762, upload-time = "2026-02-13T10:04:26.416Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/ad/8a/5764b851659345f34787f1b6eb30b9d308bbd6c294825cbe38b6b869c97a/typer_slim-0.23.1-py3-none-any.whl", hash = "sha256:8146d5df1eb89f628191c4c604c8464fa841885d0733c58e6e700ff0228adac5", size = 3397, upload-time = "2026-02-13T10:04:27.132Z" },
+]
+
[[package]]
name = "typing-extensions"
version = "4.15.0"