Skip to content

feat(openai): add LLM.with_crusoe for Crusoe Managed Inference - #6408

Open
acheamponge wants to merge 6 commits into
livekit:mainfrom
acheamponge:feat-crusoe-llm
Open

acheamponge wants to merge 6 commits into
livekit:mainfrom
acheamponge:feat-crusoe-llm

Conversation

@acheamponge

@acheamponge acheamponge commented Jul 13, 2026 •

Copy link
Copy Markdown

Adds LLM.with_crusoe() to the OpenAI plugin, following the same pattern as with_nebius / with_cerebras.

Crusoe Managed Inference is OpenAI-API compatible: endpoint https://api.inference.crusoecloud.com/v1/, auth via CRUSOE_API_KEY.

  • llm.py: with_crusoe() static method (default model openai/gpt-oss-120b)
  • models.py: CrusoeChatModels literal with the chat models Crusoe serves as of 2026-11-14 (GLM 5.3, DeepSeek V4.1 Flash, GPT-OSS, Gemma 4, Qwen3.8, Nemotron 3.5 and Nemotron 3 Nano Omni)

I maintain Crusoe's ecosystem integrations (LiteLLM: BerriAI/litellm#23195, SGLang: sgl-project/sglang#20475).

@acheamponge
acheamponge requested a review from a team as a code owner July 13, 2026 21:57
@CLAassistant

CLAassistant commented Jul 13, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Groups openai/openai.types with httpx as third-party, livekit.agents.*
as first-party (per known-first-party config), and fixes the
alphabetical position of CrusoeChatModels in the .models import.
@acheamponge

Copy link
Copy Markdown
Author

Status update: the ruff formatting check is fixed and CI is now fully green on the current head. Ready for review whenever someone has a chance — happy to make any changes needed.

@acheamponge

Copy link
Copy Markdown
Author

Hi @longcw, following up on this one. It adds LLM.with_crusoe for Crusoe Managed Inference in the openai plugin. CLA is signed and CI is fully green (the earlier ruff formatting issue was resolved). Would appreciate a review whenever you have a moment.

Crusoe has retired most of the ids this PR listed, including the GLM 5.2
default. List the chat models Crusoe serves today and default to
openai/gpt-oss-120b.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

@acheamponge

Copy link
Copy Markdown
Author

Hi @tinalenguyen, this adds LLM.with_crusoe() to the OpenAI plugin, the same shape as with_nebius and with_cerebras. I just synced it with main and refreshed CrusoeChatModels and the default model to what Crusoe serves today, and CI is green on the new head. It is 2 files, +57. Could you take a look, or point me to the right reviewer for vendor helpers in this plugin? Happy to adjust anything.

Three CrusoeChatModels entries used the spellings from Crusoe's docs
table. The API is case-sensitive and returns 404 model_not_found for
them; GET /v1/models lists nvidia/Nemotron-3.5-Lightning-30B-A3B,
nvidia/NVIDIA-Nemotron-3.5-Super-VL and Qwen/Qwen3.8-27B.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants