Skip to content

docs: document omit sentinel behavior on provider wires (carry of #2432) - #3603

Merged
lidge-jun merged 2 commits into
devfrom
codex/260905-omit-sentinel-docs
Sep 5, 2026
Merged

docs: document omit sentinel behavior on provider wires (carry of #2432)#3603
lidge-jun merged 2 commits into
devfrom
codex/260905-omit-sentinel-docs

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Summary

Carries #2432 and corrects the provider field comments: the literal omit suppresses reasoning_effort on OpenAI-compatible wires and think on the native Ollama adapter. The documentation references the canonical sentinel owner instead of implying the config interface exports it.

Verification

  • Inspected the source constant in src/reasoning-effort.ts and the documentation interdiff.
  • No runtime logic change, no local suite run. Final dev CI is the batch gate.

Checklist

  • Documentation-only scope.
  • Provider reference and source comments agree.
  • No secret or authentication changes.

Co-authored-by: mdwsk88 11055210+mdwsk88@users.noreply.github.com

Summary by CodeRabbit

  • Documentation
    • Clarified provider configuration options for mapping reasoning labels to "__omit__".
    • Documented that this setting omits reasoning fields from upstream requests, allowing provider-specific defaults or deep reasoning modes.
    • Added examples for compatible Ollama models.
    • Updated the guidance across supported language translations.

@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner September 5, 2026 03:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-05T03:41:07.087048Z 9a6582c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lidge-jun
lidge-jun merged commit 850afb2 into dev Sep 5, 2026
5 of 7 checks passed
@lidge-jun
lidge-jun deleted the codex/260905-omit-sentinel-docs branch September 5, 2026 03:38
@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: 71a5b301-6ef2-4fe8-9932-f36f9f220acd

📥 Commits

Reviewing files that changed from the base of the PR and between 4504562 and 9a6582c.

📒 Files selected for processing (9)
  • docs-site/src/content/docs/fr/reference/configuration/providers.md
  • docs-site/src/content/docs/ja/reference/configuration/providers.md
  • docs-site/src/content/docs/ko/reference/configuration/providers.md
  • docs-site/src/content/docs/reference/configuration/providers.md
  • docs-site/src/content/docs/ru/reference/configuration/providers.md
  • docs-site/src/content/docs/tr/reference/configuration/providers.md
  • docs-site/src/content/docs/zh-cn/reference/configuration/providers.md
  • docs-site/src/content/docs/zh-tw/reference/configuration/providers.md
  • src/types/provider.ts

📝 Walkthrough

Walkthrough

The change documents the reserved "__omit__" value for reasoningEffortMap and modelReasoningEffortMap. It updates OcxProviderConfig comments and provider configuration pages in eight languages. No runtime logic or public signatures changed.

Changes

Reasoning omission documentation

Layer / File(s) Summary
Provider reasoning omission contract
src/types/provider.ts, docs-site/src/content/docs/*/reference/configuration/providers.md
The provider configuration comments and localized reference pages document that "__omit__" removes the reasoning field from upstream requests. The documentation identifies OpenAI-compatible and Ollama fields and notes per-model map precedence.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: luvs01

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/260905-omit-sentinel-docs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9a6582c4d7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +154 to +155
| `reasoningEffortMap?` | `Record<string, string>` | Provider-wide wire aliases for reasoning labels. Map a label to `"__omit__"` to drop the reasoning field from the upstream request entirely: `reasoning_effort` on an OpenAI-compatible wire, and Ollama's native `think` field on the Ollama native adapter (#2356). |
| `modelReasoningEffortMap?` | `Record<string, Record<string, string>>` | Per-model wire aliases for reasoning labels. Map a label to `"__omit__"` to drop the reasoning field from the upstream request entirely. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Limit the omission claim to supported request wires

For a non-forward openai-responses route with a configured reasoning ladder and a label mapped to "__omit__", mapRoutedResponsesReasoningEffort in src/adapters/openai-responses.ts:632-634 receives undefined and returns the original body, leaving body.reasoning.effort on the upstream request. The unconditional statement that the reasoning field is dropped entirely therefore gives users the wrong result on a documented provider wire; either remove the Responses effort when the sentinel is selected or explicitly scope this documentation to the Chat-compatible and native Ollama paths that implement omission.

AGENTS.md reference: docs-site/AGENTS.md:L7-L8

Useful? React with 👍 / 👎.

| `annotateEmptyToolOutputs?` | `boolean` | Remplace un résultat d’outil présent mais vide par un court marqueur avant qu’il n’atteigne le modèle, afin qu’un résultat vide ne soit pas interprété comme manquant. S’applique aux chaînes vides et aux tableaux de parties contenant uniquement du texte ; les parties d’image, de fichier et chiffrées ne sont jamais modifiées. La valeur par défaut issue du registre intégré est `true` pour DeepSeek ; dans les autres cas, elle n’est pas définie. Définissez `false` pour exclure un fournisseur : une valeur `false` explicite est conservée lors des modifications ultérieures qui omettent ce champ. `PATCH /api/providers?name=<provider>` accepte `true`, `false` ou `null` pour effacer le remplacement et revenir au comportement par défaut du registre. |
| `reasoningEffortMap?` | `Record<string, string>` | Alias ​​de fil à léchelle du fournisseur pour les étiquettes de raisonnement. |
| `modelReasoningEffortMap?` | `Record<string, Record<string, string>>` | Alias ​​de fil par modèle pour les étiquettes de raisonnement. |
| `reasoningEffortMap?` | `Record<string, string>` | Alias de fil à l'échelle du fournisseur pour les étiquettes de raisonnement. Mappez une étiquette à `"__omit__"` pour supprimer complètement le champ de raisonnement de la requête en amont (par exemple pour les modèles Ollama dont le gabarit de conversation exige l'omission de `reasoning_effort` pour activer le mode de raisonnement approfondi). |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Name Ollama's native think field in every translation

This localized text says Ollama deep mode requires omitting reasoning_effort, while the canonical English page and src/adapters/ollama-native.ts identify the native field as think. The same contradictory wording was added to the Japanese, Korean, Russian, Turkish, Simplified Chinese, and Traditional Chinese pages, so localized readers are given a different wire contract; update all seven translations to describe omission of native think.

AGENTS.md reference: docs-site/AGENTS.md:L9-L9

Useful? React with 👍 / 👎.

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants