Skip to content

feat: make scheduler openai agent compatible#468

Merged
gufengc merged 1 commit into
mainfrom
codex/scheduler-agent-compat
Jun 1, 2026
Merged

feat: make scheduler openai agent compatible#468
gufengc merged 1 commit into
mainfrom
codex/scheduler-agent-compat

Conversation

@gufengc
Copy link
Copy Markdown
Collaborator

@gufengc gufengc commented Jun 1, 2026

Summary

  • Add /v1/models to the scheduler OpenAI gateway.
  • Keep /v1/chat/completions client fields pass-through while stripping/overriding Parallax-internal routing fields.
  • Preserve downstream non-streaming HTTP status/content type over the RPC boundary and return OpenAI-shaped scheduler errors.
  • Cover model listing, agent field pass-through, OpenAI errors, and downstream status preservation in tests.

Validation

  • pre-commit run --all-files
  • .venv/bin/python -m pytest (133 passed, 5 skipped)
  • Manual README flow: parallax run -m Qwen/Qwen3-0.6B -n 1, parallax join --use-hfcache, scheduler /v1/models, streaming chat completion, tool call request, and follow-up role: "tool" response all succeeded.

@gufengc gufengc requested a review from a team June 1, 2026 05:03
@gufengc gufengc changed the title [codex] Make scheduler OpenAI agent compatible feat: make scheduler OpenAI agent compatible Jun 1, 2026
@gufengc gufengc changed the title feat: make scheduler OpenAI agent compatible feat: make scheduler openai agent compatible Jun 1, 2026
@gufengc gufengc merged commit 4e1f125 into main Jun 1, 2026
11 of 13 checks passed
@gufengc gufengc deleted the codex/scheduler-agent-compat branch June 1, 2026 05:40
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.

1 participant