Skip to content

[Feat] Add custom request fields for OpenAI-compatible providers - #1350

Open
zoomote[bot] wants to merge 8 commits into
mainfrom
roomote/openai-extra-body-visual-baseline
Open

[Feat] Add custom request fields for OpenAI-compatible providers#1350
zoomote[bot] wants to merge 8 commits into
mainfrom
roomote/openai-extra-body-visual-baseline

Conversation

@zoomote

@zoomote zoomote Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

​Created by Roomote. Follow up by mentioning @roomote, in the web UI, or in Discord.

What changed

OpenAI-compatible provider profiles now include a localized Extra Body JSON editor for provider-specific request fields. Zoo Code validates the JSON, rejects runtime-managed and prototype-sensitive keys, persists it only for OpenAI-compatible profiles, and merges safe fields into streaming, non-streaming, O-family, and single-completion requests.

The settings control uses VS Code-themed components, accessible validation feedback, translations for every supported locale, and unclipped full-height visual baselines for dark, light, high-contrast, and high-contrast-light themes.

Why this change was made

Providers such as Sail Research require request-body metadata to select features such as the balanced completion window. Custom headers cannot express those fields, so users previously needed a proxy. This closes #1104.

Impact

Users can configure provider-specific fields such as { "metadata": { "completion_window": "balanced" } } directly in an OpenAI-compatible profile without allowing custom JSON to override Zoo Code's model, messages, tools, streaming, reasoning, temperature, or token limits.

Related PRs

@codecov

codecov Bot commented Aug 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.96970% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
webview-ui/src/utils/validate.ts 93.33% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@edelauna
edelauna marked this pull request as ready for review August 28, 2026 01:11
@edelauna
edelauna force-pushed the roomote/openai-extra-body-visual-baseline branch from 97e9415 to 5bf75a2 Compare August 28, 2026 01:11
@github-actions github-actions Bot added awaiting-review PR changes are ready and waiting for maintainer re-review has-conflicts PR has merge conflicts with the base branch and removed awaiting-review PR changes are ready and waiting for maintainer re-review has-conflicts PR has merge conflicts with the base branch labels Aug 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Review process

This PR was opened by an automated account. A human maintainer must verify the change intent, provenance, and validation before merging.

  1. Required CI checks pass.
  2. The workflow starts CodeRabbit automatically.
  3. CodeRabbit reviews and approves the latest commit.
  4. A human maintainer reviews and approves after CodeRabbit.

Current step: Resolve the merge conflicts. The review sequence resumes after the branch is mergeable.

@github-actions github-actions Bot added awaiting-review PR changes are ready and waiting for maintainer re-review has-conflicts PR has merge conflicts with the base branch and removed has-conflicts PR has merge conflicts with the base branch awaiting-review PR changes are ready and waiting for maintainer re-review labels Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

has-conflicts PR has merge conflicts with the base branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Support custom request body parameters (extra_body) for API providers

2 participants