Add Hopper LLM provider#6132
Open
pavanyellow wants to merge 1 commit into
Open
Conversation
06fe901 to
ce4f12a
Compare
Hopper serves open-source models optimized for low time-to-first-token, aimed at voice agents. The API is OpenAI-compatible, so this adds a LLM.with_hopper() factory in the livekit-plugins-openai package alongside the other OpenAI-compatible providers (Cerebras, Together, Nebius, etc.), plus a HopperChatModels type.
ce4f12a to
ff006fd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
LLM.with_hopper()factory to the OpenAI plugin, alongside the otherOpenAI-compatible providers (Cerebras, Together, Nebius, Telnyx, …).
Hopper serves open-source models optimized for low
time-to-first-token, aimed at voice agents. The API is OpenAI-compatible, so
this follows the existing
with_*provider pattern — no new plugin, just afactory method plus a
HopperChatModelstype.Usage
Get an API key at https://withhopper.com.
Changes
with_hopper()classmethod onopenai.LLM(defaults:base_url=https://api.withhopper.com/v1,HOPPER_API_KEY).HopperChatModelsliteral inmodels.py._strict_tool_schema=False, matching the other open-model providers served on vLLM-style backends (same as Cerebras, use non-strict tool schema for cerebras llm #3134).Latency
TTFT (time to first token) over a warm connection, voice-agent-shaped context
(~2k-token system prompt + short user turn), 10-run p50:
First-token latency is dominated by where your agent runs relative to the model,
not the serving itself; colocated, it's ~60ms.
Testing
Verified against the live endpoint through the plugin:
chat()returns a valid completion_strict_tool_schema=False)ruff checkpasses on the changed files