Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Environment:Sgl project Sglang OpenAI

From Leeroopedia


Sgl_project_Sglang_OpenAI is the OpenAI Python SDK client environment for SGLang, providing the client library used to interact with SGLang's OpenAI-compatible API endpoints for chat completions, text completions, and embeddings.

Requirements

  • Python 3.10+
  • `openai` == 2.6.1 (OpenAI Python SDK)
  • SGLang server running with OpenAI-compatible API enabled
  • Network access to the SGLang server endpoint
  • `OPENAI_API_KEY` or `--api-key` configuration (can be a dummy value for local SGLang servers)
  • `OPENAI_BASE_URL` pointed to SGLang server (e.g., `http://localhost:30000/v1`)

Required By

See Also

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment