Feat(video): Implement full video ingestion pipeline using yt-dlp, Whisper transcription, and LLM summarization; updates Ollama client to support options.

This commit is contained in:
2026-06-15 06:12:24 +02:00
parent 912c63468b
commit bb2e0c08e2
3 changed files with 471 additions and 1 deletions

View File

@@ -202,13 +202,20 @@ def supports_vision(model_data: Dict[str, Any]) -> bool:
return False
async def chat(model: str, messages: List[Dict[str, Any]]) -> str:
async def chat(
model: str,
messages: List[Dict[str, Any]],
*,
options: Dict[str, Any] | None = None,
) -> str:
ollama_url = get_ollama_api_url()
payload = {
"model": model,
"messages": messages,
"stream": False
}
if options:
payload["options"] = options
async with httpx.AsyncClient(timeout=600.0) as client:
r = await client.post(f"{ollama_url}/api/chat", json=payload)
r.raise_for_status()