WeSearch

Show HN: LLM Proxy - Python with SSE stream aggregation and timeout prevention

·2 min read · 0 reactions · 0 comments · 9 views
#show#proxy#python#stream#aggregation
Show HN: LLM Proxy - Python with SSE stream aggregation and timeout prevention
TL;DR · WeSearch summary

This lets any tool that already speaks Ollama, OpenAI, or llama.cpp talk to a NVIDIA-hosted model without any client-side changes — you simply point the client at llmproxy instead of at a real local runtime. It covers chat, completions, and embeddings, supports streaming, multi-model discovery, optional inbound authentication, automatic retries on transient upstream errors, and a live /stats metrics & process dashboard. Demo The proxy starts, exposes the models, and answers both an OpenAI-compatible /v1/chat/completions call and a native Ollama streaming /api/chat call — every request forwarded to NVIDIA.

Key facts
About this source

Hacker News (AI / LLM) files mainly under ai. We currently carry 2,122 of its stories.

Original article
GitHub
Read full at GitHub →
Opening excerpt (first ~120 words) tap to expand

llmproxy A lightweight, high-performance LLM proxy for caching, automatic failover, cost tracking, and seamless integration between local and cloud AI providers. llmproxy is a lightweight Flask server that emulates the HTTP APIs of several popular local LLM runtimes (Ollama, the OpenAI /v1 API, and llama.cpp's llama-server) and transparently forwards every request to NVIDIA's OpenAI-compatible API (https://integrate.api.nvidia.com/v1). This lets any tool that already speaks Ollama, OpenAI, or llama.cpp talk to a NVIDIA-hosted model without any client-side changes — you simply point the client at llmproxy instead of at a real local runtime.

Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from GitHub