Skip to content

examples: add online SGLang HTTP recipe#23

Merged
hallerite merged 1 commit into
PrimeIntellect-ai:mainfrom
guapisolo:jiajunli/online-sglang-http-example
May 13, 2026
Merged

examples: add online SGLang HTTP recipe#23
hallerite merged 1 commit into
PrimeIntellect-ai:mainfrom
guapisolo:jiajunli/online-sglang-http-example

Conversation

@guapisolo
Copy link
Copy Markdown
Contributor

Summary

  • add an online SGLang HTTP example that sends renderer-owned input_ids to /generate
  • demonstrate parsing tool calls and bridging a second turn from returned token IDs
  • document the source-checkout command path and the PEP 723 package-publish requirement

Verification

  • uv run ruff check examples/sglang/online_multiturn_sglang.py
  • uv run ruff format --check examples/sglang/online_multiturn_sglang.py
  • uv run pytest tests/ -q
  • Tested against lmsysorg/sglang:dev serving Qwen/Qwen3.5-4B: both Qwen3.5 thinking modes completed two turns, parsed multiply(17, 23), produced 391, and passed the bridge byte-prefix assertion.

@hallerite hallerite merged commit 0733890 into PrimeIntellect-ai:main May 13, 2026
6 checks passed
hallerite added a commit that referenced this pull request May 13, 2026
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