New APINew API
User GuideInstallationAPI ReferenceAI ApplicationsSkillsHelp & SupportBusiness Cooperation
Administrator Guide

Request Processing

Root can add request processing instances to inspect or modify requests before they are sent upstream. Select plugins and their scope, adjust execution order, run tests, and add instances to Channels.

  • Only Root can access this page. In the sidebar, go to “Admin” → “Request Processing”.
  • Add request processing instances to inspect or modify requests before they are sent upstream.
  • Install, enable, disable, and manage versions of request processing plugins in Plugin Management. Use this page to add and manage instances.

Tip

  • Each row on this page is an instance. Select a request processing plugin and configure its settings. After you save it, the instance applies to matching requests.
  • An instance can apply to all requests, to specific Groups, or only to the Channels you add it to. See Add an Instance to a Channel.
  • The “Request Processing” card on the “Request and Response” tab of the Channel editing drawer contains Channel-specific options such as forced formatting and reasoning-to-content conversion. Those options are configured separately.

Request Processing Overview

  • Request Processing – Instance List

Request Processing instance list page

The page lists all request processing instances, one per row. They run from top to bottom.

Tip

If a request is rejected, the client receives HTTP 500, or an instance does not take effect, see Frequently Asked Questions.

Field Reference

FieldDefinitionRequirements and LimitsNotes
OrderThe instance’s position in the list, which determines when it runs.Use the move up and move down buttons to the right of the position number.See Execution Stages and Order.
NameThe instance name.Edit it in the instance dialog. The maximum is 64 characters. It defaults to the plugin name.—
PluginThe plugin the instance uses.Select it when adding the instance. The selection is permanent.Shows the plugin icon and name. If the plugin is disabled or missing, it shows the plugin key and “Plugin disabled”. See Instance Status.
ScopeWhich requests the instance processes.Set this under “Where to Apply” in the instance dialog.Shows “All Requests”, the selected Group names, or “Channel Only”. “Channel Only” corresponds to “Only When Added to a Channel” in the dialog. If the instance applies to specific models, “Models: …” appears below.
EnabledThe switch that enables the instance.New instances are enabled by default. Changes are saved immediately.See Instance Status.
ActionsEdit or delete the instance.—See Row Actions.

Common Operations

This section covers adding, editing, reordering, enabling, disabling, and deleting instances, as well as running tests and adding instances to Channels.

Add and Edit Instances

  • Request Processing – Add Request Processing

Add Request Processing page

To Add an Instance

  1. Click “Add” in the upper-right corner of the page.
  2. Click a plugin card in the “Add Request Processing” dialog.
  3. To rename the instance, click the pencil icon next to the name at the top of the dialog. The name defaults to the plugin name and can be up to 64 characters long. Clearing the name restores the plugin name.
  4. Configure the plugin under “Settings”. For the settings of each built-in plugin, see Built-in Request Processing Plugins.
  5. Under “Where to Apply”, select the scope on the first row and the applicable models on the second. See the table at the end of this section for the available options.
  6. To test the instance, select “Sample Request” or “Paste Request” under “Try It” on the right, then click “Run”.
  7. Check the “Enabled” switch in the lower-left corner, then click “Save”.

Tip

  • The text below the dialog title reads “Choose a plugin to get started. You can change its settings at any time.”
  • Each plugin card shows the plugin description and execution stages, such as “Before Reading the Request”, “Before Sending”, and “Check Response”.
  • The card also shows how the plugin handles errors, either “Skip on Error” or “Reject Request on Error”.
  • Cards for plugins that already have instances show “… added”.
  • To select a different plugin, click “Change Plugin” in the lower-left corner. The name and settings reset to the new plugin’s defaults. The “Where to Apply” and “Enabled” selections are retained.
  • If a setting is invalid, the reason appears below the field, such as “This field is required”.
  • If server-side validation fails, “Invalid settings for request processing instance …: …” appears below “Where to Apply” and the dialog stays open.
  • On a successful save, the dialog closes and the new instance appears at the end of the list.
  • Click “Cancel” to discard unsaved changes. The dialog reopens with the last saved values.

“Try It” Panel Reference

The panel shows the following controls and sections from top to bottom. Conditional sections appear only when their conditions are met.

SectionWhen It AppearsDescription
“Run”—In the upper-right corner of the panel. Runs the instance with the current settings in the dialog. If the settings contain errors, the button is disabled and “Fix the issues in Settings before running” appears below.
“Sample Request”—Selected by default. Shows the sample request included with the plugin. If the plugin has no sample, a generic sample is used.
“Attached Images”The sample request contains imagesShows each sample image’s thumbnail, format, file size, and pixel dimensions.
“Sample Response”“Sample Request” is selected and the plugin inspects model responsesShows the model response included in the sample.
“Paste Request”—Select the request format from the dropdown, then paste JSON into “Request Body”. The options are “OpenAI Chat Completions” (default), “OpenAI Responses”, “Claude Messages”, and “Gemini”.
The prompt reads “The request body must be a JSON object.”
“Response to Check (Optional)”“Paste Request” is selected and the plugin inspects model responsesEnter a model response to inspect alongside the request.
Footer message—Before a run, the panel shows “Uses the current settings.” If you change the settings after a run, “Settings changed. Run again to see the result.” appears above the results.

“Try It” Results

After the run, the results replace the sample. The last line shows “Completed in … ms”.

OutcomeWhat the Panel Shows
The instance rejects the requestA red box labeled “This request would be rejected”, with the plugin’s message and code below.
The instance encounters an errorA yellow box with the original error message below the title. The title depends on the plugin’s “On Error” behavior and the stage where it failed.
“Reject Request on Error”: “The plugin encountered an error. This request would be rejected.”
“Skip on Error”: “The plugin encountered an error. The request would be sent without its changes.”
“Reject Request on Error” during “Check Response”: “The plugin encountered an error. This response would be stopped.”
“Skip on Error” during “Check Response”: “The plugin encountered an error. The response would be sent without its changes.”
No changes“No changes. The request would be sent upstream as is.” If the run includes a response, the panel shows “No changes. The request and response would both pass through as is.”
Images compressedTwo images labeled “Original” and “Sent Upstream”, with the percentage reduction (such as −62%).
Text rewrittenA comparison of “Original” and “Sent Upstream”, with changes highlighted.
Reasoning effort setThe previous and new “Reasoning Effort” values. If it had no previous value, the panel shows “Not Set”.
Response stopped or masked“This response would be stopped”, with the plugin’s message and code, or a comparison of “Model Response” and “Sent to Client”.
Usage log entry“What the Usage Log Would Show”, followed by the log entry.
Unable to runThe original error appears in red above the results, such as “Invalid settings for request processing instance …: …”.

Tip

  • “Try It” uses the current settings in the dialog, even before you save them.
  • It runs only the current instance.
  • It runs under “All Requests” and “All Models”, regardless of the “Where to Apply” and “Enabled” selections. It bypasses Channels.
  • “Try It” sends no request upstream and incurs no charges.
  • “Content Moderation” makes a live call to the moderation endpoint in its settings.

To Edit an Instance

  1. Click the edit icon at the end of the instance’s row.
  2. Update the name, settings, and “Where to Apply” as needed.
  3. Click “Save”.

Differences Between Adding and Editing

Both operations use the same dialog. The table lists the differences.

ItemAddEdit
Entry pointClick “Add” in the upper-right corner of the page, then select a plugin in “Add Request Processing”.Click the edit icon at the end of the row to open the settings directly.
“Change Plugin”Appears in the lower-left corner.This button is hidden because the plugin selection is permanent.
Initial valuesThe name matches the plugin name. The plugin uses its default settings, applies to “All Requests” and “All Models”, and is enabled.The instance’s saved values.
Position after savingEnd of the list.The instance stays in its current position.
Plugin disabled or missingThe plugin picker lists only available plugins.“Settings” shows “This plugin is disabled or missing. The instance will not run. Its settings will be retained.”
“Try It” is hidden.
You can still change “Where to Apply”. Saving retains the existing plugin settings.
Turn off “Enabled” before saving.

“Where to Apply” Options

New instances default to “All Requests” and “All Models”.

OptionDescription
“All Requests”Runs for every request, regardless of Group or Channel.
“Specific Groups”Processes requests from the selected Groups only. Select at least one Group under “Select Groups” below.
“Only When Added to a Channel”Applies only to Channels that include the instance in their settings. See Add an Instance to a Channel.
“All Models”Runs regardless of which model the client requests.
“Specific Models”Processes requests for the selected models only.
Select at least one model under “Select Models or Add a Custom Model” below. You can also enter model names that do not appear in the list.
You can specify up to 100 models, with up to 128 characters per model name.
Matching uses the model name in the client request before model mapping.

Reorder, Enable, or Delete Instances

Perform these actions directly in the instance list. Each action saves the entire list immediately. Successful saves produce no notification.

List Actions

  • To reorder instances, click the move up or move down button to the right of the position number in the “Order” column.
  • To enable or disable an instance, click the switch in the “Enabled” column. If the save fails, the switch returns to its previous state.
  • To change settings, see Add and Edit Instances.

To Delete an Instance

  1. Click the delete icon at the end of the instance’s row.
  2. Click “Delete” in the “Delete Instance?” confirmation dialog.

Caution

  • The confirmation dialog says “… will stop processing requests, including on Channels it was added to.” Deletion is permanent.
  • Channels retain their references to the deleted instance and show it as “Deleted”. See Add an Instance to a Channel.
  • If the save fails, the server’s original error message appears in a pop-up and the list stays as it was.
  • A common cause is an enabled instance that uses a disabled plugin. See Instance Status.

Dry Run

  • Request Processing – Dry Run

Request Processing dry run page

“Dry Run” runs saved instances against a sample request. It sends no request upstream and incurs no charges. “Content Moderation” instances make live calls to the moderation endpoint.

To Perform a Dry Run

  1. Click “Dry Run” in the upper-right corner of the page.
  2. Select the “Format” and enter a “Model”.
  3. Enter a “Group” and “Channel ID” if needed.
  4. Enter a sample request in “Request Body” and click “Run”.
  5. Review the “Results”.

Tip

  • A dry run runs only saved, enabled instances and omits the “Check Response” stage.
  • Execution stops at the first rejection or error that causes the request to fail. Subsequent instances are skipped.
  • Closing and reopening the dialog resets all inputs to their default values.

Results Reference

SectionWhat It Shows
Summary“The request passed all instances.” No instance rejected the request or caused it to fail. This message also appears if an instance with “On Error” set to “Skip” fails. Its “Action” column in the execution steps shows fail.
“Rejected by …: … (code: …)” The instance rejected the request, and subsequent instances were skipped.
“… failed: …” An instance with “On Error” set to “Reject Request” encountered an error, such as an unreachable moderation endpoint. An actual request would receive HTTP 500. See Frequently Asked Questions.
Execution stepsShows each “Instance” with the plugin name below it, along with “Stage”, “Action”, “Change Count”, “Matches”, and “Duration”. “Action” shows “Passed”, “Rejected”, or “Not Checked”. On error, it shows fail and the reason. “Matches” shows the rule (category) × count, or “—” if there are no matches. If no instance ran, it shows “No instances ran for this request.”
Request BodyChanges the instances made to the request body. If there are none, it shows “The request body was unchanged.”
Request Header ChangesRequest headers that were set or removed. If there are none, it shows “No request headers changed.”
Reasoning EffortShows “Reasoning Effort: …” if an instance set the reasoning effort.
What Users See in the LogEntries that users can see in the usage log, such as “Blocked (code: …)”. If there are none, it shows “The user log will show no processing details for this request.”

Configuration Reference

The dialog uses a single section. The table follows the order of the fields in the dialog.

SettingDefinitionRequirements and LimitsDefault
FormatThe sample request format.“OpenAI Chat Completions”, “OpenAI Responses”, “Claude Messages”, or “Gemini”. Changing the format resets “Model” and “Request Body” to the defaults for that format.OpenAI Chat Completions
ModelThe requested model name.Required. “Run” is disabled while the field is empty. This value determines whether “Specific Models” instances run.Depends on the format, such as gpt-4.1-mini
GroupThe Group the request belongs to.Optional. Select or enter a Group name. Leave it blank to skip “Specific Groups” instances.Blank
Channel IDThe Channel to use for the run.Optional. Enter a Channel ID to also run instances added to that Channel.
Validation messages include “Enter a valid Channel ID.” and “Channel does not exist”.
Blank
Request BodyThe sample request.Must be a JSON object. Otherwise, the dialog shows “The request body must be a JSON object.”A sample request in the selected format

Add an Instance to a Channel

Instances with “Where to Apply” set to “Only When Added to a Channel” run only on the Channels they are added to. Other instances also run on requests for the Channels they are added to.

To Add an Instance

  1. Edit the Channel in Channel Management and open the “Request and Response” tab.
  2. Find “Request Processing Plugins” under “Override Rules” and select an instance from the “Add Instance” dropdown.
  3. Use the move up and move down buttons or drag the instances to reorder them. Click × to remove an instance.
  4. Click “Update Channel” to save.

Tip

  • The “Request Processing Plugins” field is visible only to accounts with the “Bind Task Plugins” permission.
  • “Request Processing Plugins” is a sensitive Channel setting.
  • If an instance already ran for the request because it applies to all requests or to the request’s Group, it is skipped on the Channel.

Configuration Reference

See Channel Management for the rest of the Channel form settings.

SettingDefinitionRequirements and LimitsDefault
Request Processing PluginsInstances added to this Channel. The field description reads “Instances that apply to all requests or to this Channel’s Group also run.”The dropdown lists every instance that has yet to be added, including disabled instances. Selecting an instance adds it to the end of the list. Once all instances have been added, the dropdown shows “No more instances”. The list order determines the execution order for instances added to this Channel.
Disabled instances are marked “Disabled” and are skipped. Deleted instances show “Deleted” and the instance ID.
Blank

Caution

After an instance is deleted, any remaining reference in a Channel shows “Deleted”. Remove the reference before saving the Channel. Otherwise, the save fails with “Request processing instance … does not exist”.

Rules and Behavior

This section covers execution stages and order, how blocked requests are handled and logged, and settings for the six built-in request processing plugins.

Execution Stages and Order

Each plugin declares which stages it runs in. These stages appear on the plugin card and at the top of the instance dialog.

Execution Stages

  • “Before Reading the Request” inspects or modifies the client request after it arrives and before a Channel is selected. Instances added to a Channel run after that Channel is selected.
  • “Before Format Conversion” runs after Channel selection and before the request is converted to the Channel’s format.
  • “Before Sending” runs before each attempt to send the request to the Channel and before Channel parameter overrides are applied.
  • “Final Check” inspects the outgoing request after Channel parameter overrides are applied. At this stage, instances can reject the request only.
  • “Check Response” inspects the model response and stops it when a rule matches.

Execution Order

  • The text above the list reads “Instances run from top to bottom. Instances that apply to all requests run first, followed by instances for the request’s Group, then instances added to the Channel.”
  • Within each scope, instances run in list order. Instances added to a Channel run in the order set on that Channel.
  • Changing the order can change the result. Use Dry Run to check the result after reordering instances.
  • To set parameter rules that apply across all Channels, configure a Global Parameter Override instance.

Blocking and Logging

When an instance rejects a request or encounters an error, the client receives an error according to the plugin’s error handling behavior. The usage log records the outcome.

Errors Returned to Clients

SituationWhat the Client ReceivesSent Upstream
An instance rejects the requestHTTP 400 with error code request_rejected.
The message comes from the plugin, such as the “Rejection Message” in Request Filtering. Content Moderation returns an English message. If no message is set, the default is “Request rejected by policy”. The message ends with “(code: …)”, such as request_filtered for Request Filtering, sensitive_content for Request Redaction, or moderation.flagged for Content Moderation.
No. The request is also ineligible for retry on another Channel.
An instance encounters an error and the plugin’s “On Error” setting is “Reject Request”, such as when the moderation endpoint is unreachableHTTP 500 with error code request_plugin_failed.
Message “A request plugin failed”.
No. The request is also ineligible for retry on another Channel.
An instance encounters an error and the plugin’s “On Error” setting is “Skip”—Yes. The instance is skipped and the request is sent as usual.
A response is stopped during “Check Response”Error code response_rejected. A non-streaming response returns HTTP 400. A streaming response ends with an error after any content already sent.
The message comes from the plugin and defaults to “Response stopped by policy”. The message ends with “(code: …)”.
Yes. The model response is stopped.

Log Entries

View the following entries in the Usage Logs.

LocationWhat It ShowsNotes
Log list“Processed” below the model name. Hover over it to see “Request Processing: …”.Appears when request processing modifies or blocks the request, or detects matching content.
“Request Processing” section of log detailsWhat each instance did. Shows “Blocked (code: …)” if an instance rejects the request or if an instance with “On Error” set to “Reject Request” encounters an error. Shows “Stopped (code: …)” if a response is stopped.Changes superseded by Channel parameter overrides are marked “Overridden by Channel Settings”. If the instance could not read the request, it is marked “Not Checked”. See Important Notes.
“Request Processing Steps” in log detailsEach instance’s stage, duration, and error, if any.Visible to administrators only.
Error logBlocked requests generate an error log entry and are excluded from consumption logs.Written only when error logging is enabled. See Request Decision Logging.

Built-in Request Processing Plugins

New API includes the following six request processing plugins. The list can change by version. You can also upload other request processing plugins or install them from the plugin marketplace in Plugin Management.

Plugin Reference

When a plugin encounters an error and its “On Error” behavior is “Reject Request”, the request is rejected. See Blocking and Logging. If the behavior is “Skip”, the instance is skipped and the request is sent as usual.

PluginExecution StagesOn ErrorPurpose
Request Filtering (request-filter)Before Reading the Request, Final Check, Check ResponseReject RequestRejects requests whose text matches a keyword or regular expression. See Request Filtering.
Request Redaction (request-redact)Before Reading the Request, Final Check, Check ResponseReject RequestReplaces personal information and secrets in request text before sending. See Request Redaction.
Content Moderation (content-moderation)Before Reading the Request, Check ResponseReject RequestChecks user content through an OpenAI-compatible moderation endpoint and rejects flagged requests. See Content Moderation.
Global Parameter Override (param-override)Before SendingReject RequestApplies parameter override rules to all requests, specific Groups, or specific models. See Global Parameter Override.
Automatic Reasoning Effort (auto-reasoning)Before Format ConversionSkipSets reasoning effort based on the size of the request. See Automatic Reasoning Effort.
Image Compression (image-compress)Before SendingSkipCompresses large images in requests before sending them upstream. See Image Compression.

Tip

The following sections list each plugin’s settings. “Default” refers to the value used for a new instance.

Request Filtering

  • Request Processing – Request Filtering Configuration

Request Filtering configuration page

Rejects requests whose text matches a keyword or regular expression. At “Before Reading the Request”, the plugin checks all request text, including messages from every role, system prompts, tool definitions and call arguments, tool results, prompts, and attached text, PDF, and DOCX files. At “Final Check”, it checks the outgoing request again, including any text added by Channel parameter overrides. On a match, the client receives HTTP 400 with error code request_rejected. The response uses the “Rejection Message” followed by (code: request_filtered).

Configuration Reference

SettingDefinitionRequirements and LimitsDefault
RulesRejects the request if any rule matches. Click “Add Rule” to add rules individually.Optional. Up to 500 rules.None
Rules › Keyword or ExpressionThe keyword or regular expression to match.Required. 1–1024 characters. Regular expressions starting with (?i) are case-insensitive. Correct invalid expressions before saving.—
Rules › Match Type“Keyword” or “Regular Expression”.—Keyword
Rules › Case SensitiveWhether matching is case-sensitive.—Off
Rules › Rule IDRecorded in the usage log when the rule matches.Optional. Up to 64 characters. Leave blank to assign IDs in order, such as rule-1, rule-2, and so on.Blank
Keyword ListOne keyword per line. A request is rejected if it contains any of them.Optional. Useful for large keyword lists. If only the keyword list matches, the log records keywords.Blank
Case-Sensitive KeywordsWhether the keyword list is case-sensitive.—Off
Rejection MessageThe message returned to the client.Optional. Up to 256 characters. Leave blank to use “Request rejected by policy”. The gray text in the input field is an example.Blank
Check ResponseAlso stops model responses that match the rules.If the response is stopped, the client receives error code response_rejected. For streaming responses, the plugin briefly buffers a short trailing segment of text so it can detect keywords split across chunks.Off

Request Redaction

  • Request Processing – Request Redaction Configuration

Request Redaction configuration page

At “Before Reading the Request”, the plugin replaces personal information and secrets in request text, then continues processing the request. It applies “Built-in Types” first, followed by “Custom Rules”, to messages, system prompts, prompts, and attached text files. Tool definitions are excluded. Files such as PDFs and DOCX documents cannot be rewritten. If they contain sensitive information, the “Pre-Send Check” setting determines how to handle the request.

Configuration Reference

SettingDefinitionRequirements and LimitsDefault
Built-in TypesTypes of information to replace, including email addresses, phone numbers, national ID numbers, bank card numbers, API keys and Tokens, and IPv4 addresses.Click one or more tags to select types. Phone numbers include mainland China mobile numbers and international numbers with a leading +. National ID and bank card numbers are replaced only if they pass check digit validation.All selected except “IPv4 Addresses”
Custom RulesRegular expressions applied after the built-in types. Click “Add Rule” to add rules individually.Optional. Up to 50 rules.None
Custom Rules › Regular ExpressionThe expression that matches text to replace.Required. 1–1024 characters. Correct invalid expressions before saving.—
Custom Rules › Replacement TextThe replacement text for this rule.Optional. Up to 64 characters. Leave blank to use “Default Replacement Text”.Blank
Custom Rules › Rule IDRecorded in the usage log when the rule matches.Optional. Up to 64 characters. Leave blank to assign IDs in order.Blank
Default Replacement TextThe text used to replace each match.Up to 64 characters.[REDACTED]
Pre-Send CheckHow to handle outgoing requests that still contain sensitive information. Select “Reject Request” or “Off”.With “Reject Request”, the plugin rejects the request with “Request rejected by policy” followed by (code: sensitive_content) in any of these cases. The “Final Check” stage finds sensitive information still present, such as text added by Channel parameter overrides. An attachment cannot be rewritten. The request has more than 512 matches, so some cannot be replaced. With “Off”, the request is sent as usual in all these cases. If the limit is exceeded, only the first 512 matches are replaced.Reject Request
Mask ResponseAlso masks text in model responses that matches these types and rules.All matches in responses are replaced with ***, regardless of the configured replacement text. For streaming responses, the plugin briefly buffers a short trailing segment of text.Off

Tip

“IPv4 Addresses” is off by default because version numbers and example addresses can look like IPv4 addresses and be replaced by mistake.

Content Moderation

  • Request Processing – Content Moderation Configuration

Content Moderation configuration page

At “Before Reading the Request”, the plugin sends user messages, including their images and text from attached documents, to an OpenAI-compatible moderation endpoint. If the content is flagged, the plugin rejects the request. The client receives HTTP 400 with error code request_rejected and the message The request was flagged by content moderation (code: moderation.flagged) (English only). The plugin checks user messages and prompts in requests such as completions, embeddings, and image generation. It excludes system prompts and tools. You need a reachable moderation endpoint, such as OpenAI’s moderation endpoint.

Configuration Reference

SettingDefinitionRequirements and LimitsDefault
Moderation Endpoint URLThe endpoint that accepts OpenAI moderation requests.Required. Enter a full URL starting with http:// or https://, up to 2048 characters.https://api.openai.com/v1/moderations
API KeyThe key used to call the moderation endpoint, sent as a Bearer Token.Optional. Leave blank if the endpoint requires no key. Up to 1024 characters.Blank
Moderation ModelThe model name sent to the moderation endpoint.Leave blank to use the endpoint’s default model. Up to 128 characters.omni-moderation-latest
Text to CheckWhich user messages to send to the moderation endpoint. Select “Last User Message” or “All User Messages”.If the text is too long to submit in full, the plugin rejects the request with The request is too long for content moderation (code: moderation.too_long) (English only).Last User Message
Check ImagesAlso sends images from user messages to the moderation endpoint.Up to 3 images are submitted per request.On
Categories to BlockRejects requests flagged in any of the selected categories. There are 13 categories, including “Harassment”, “Hate”, and “Violence”.Click one or more tags to select categories. If none are selected, all flagged requests are rejected.None selected
Moderate ResponsesAlso moderates model responses and stops them if flagged.Non-streaming responses are submitted in full. Streaming responses are submitted in chunks of approximately 1000 characters and sent to the client only after they pass moderation. If the response is stopped, the client receives error code response_rejected and the message The reply was flagged by content moderation (code: moderation.flagged) (English only).Off

Caution

  • User messages, images, and text from attached documents are sent to the “Moderation Endpoint URL”. Use a service you trust.
  • Each request calls the moderation endpoint. With “Moderate Responses” enabled, responses also call it, increasing response times and endpoint usage. “Try It” and “Dry Run” also call the endpoint.
  • If the moderation endpoint is unreachable, returns an error, or takes longer than 15 seconds for a call, the plugin treats it as an execution error. The request is rejected and the client receives HTTP 500. See Blocking and Logging.

Global Parameter Override

  • Request Processing – Global Parameter Override Configuration

Global Parameter Override configuration page

Applies parameter override rules to all requests, specific Groups, or specific models. The syntax is the same as for Channel parameter overrides. See Parameter Override System. The plugin runs at “Before Sending” each time a request is sent to a Channel, before the Channel applies its own parameter overrides. If both set the same parameter, the Channel setting takes precedence. Request header changes from these rules also apply before Channel request header overrides.

Configuration Reference

SettingDefinitionRequirements and LimitsDefault
Parameter OverridesParameter override rules.Enter a JSON object. Edit it directly or click “Visual Editor” to use the same editor as for Channels. See “Examples” below the editor for reference. Use {} to leave the request unchanged. A return_error rule rejects the request. The client receives HTTP 400 with error code request_rejected and the rule’s message followed by its code. The response always uses HTTP 400 regardless of the status code set in return_error.{}

Tip

To modify a single Channel, use that Channel’s parameter overrides.

Automatic Reasoning Effort

  • Request Processing – Automatic Reasoning Effort Configuration

Automatic Reasoning Effort configuration page

Sets reasoning effort based on request size, including the number of messages and tools, text length, and whether the request contains images. It runs at “Before Format Conversion”. If the instance encounters an error, it is skipped and the request is sent as usual.

Configuration Reference

SettingDefinitionRequirements and LimitsDefault
RulesRules are checked in order. The first match determines reasoning effort. Click “Add Rule” to add rules individually, and use the arrows to reorder them.Up to 50 rules. A rule matches when all conditions with values are met. Blank conditions impose no restriction.Two rules. “Minimum Tool Count” 1 → “High”. “Total Text Length” 4000 → “High”.
Rules › Minimum Message CountMatches when the request contains at least this many messages.Optional. Integer of 0 or greater.Blank
Rules › Minimum Tool CountMatches when the request contains at least this many tools.Optional. Integer of 0 or greater.Blank
Rules › Last User Message LengthMatches when the last user message contains at least this many characters.Optional. Integer of 0 or greater, in characters.Blank
Rules › Total Text LengthMatches when the combined text contains at least this many characters.Optional. Integer of 0 or greater, in characters.Blank
Rules › Images OnlyWhether the rule matches only requests containing images.When off, the rule can also match requests without images.Off
Rules › Reasoning EffortThe reasoning effort to set when the rule matches.Required. Select “Off”, “Minimal”, “Low”, “Medium”, “High”, “Extra High”, or “Maximum”. “Off” disables reasoning.—
Default Reasoning EffortThe reasoning effort to set when no rule matches.“Not Set” leaves the request unchanged.Not Set
Minimum Reasoning EffortRaises reasoning effort to this level if it is lower.—Not Set
Maximum Reasoning EffortLowers reasoning effort to this level if it is higher.—Not Set
Override Reasoning Effort in RequestWhether to replace reasoning effort already set in the request.When off, the plugin leaves the request unchanged if it already specifies reasoning effort, including through the model name. The minimum and maximum settings are also skipped.Off

Caution

Models without reasoning support may reject requests that specify reasoning effort. Select “Specific Models” on the second row of “Where to Apply” and choose only models that support reasoning.

Image Compression

  • Request Processing – Image Compression Configuration

Image Compression configuration page

At “Before Sending”, the plugin compresses large images embedded in the request as base64. Images referenced by URL are skipped. If the instance encounters an error, it is skipped and the images are sent as is.

Configuration Reference

SettingDefinitionRequirements and LimitsDefault
Compression Mode“Lossless” or “Lossy”.Lossless mode converts only PNG and GIF images to WebP, preserving every pixel and the original dimensions. The upstream service must support WebP. JPEG and WebP images are skipped.Lossless
Minimum Image SizeImages at or above this size are compressed.0 or greater. Available units are B, KB, and MB, with 1 KB equal to 1000 bytes.512 KB
Longest SideImages whose longest side exceeds this value are compressed and scaled down proportionally.Appears when “Compression Mode” is “Lossy”. Range 16–16384 px. In lossy mode, an image is compressed if it reaches “Minimum Image Size” or its longest side exceeds this value.2048
Output Format“Auto”, “JPEG”, or “PNG”. “Auto” uses PNG for images with transparency and JPEG for the rest.Appears when “Compression Mode” is “Lossy”.Auto
JPEG QualityHigher values preserve more detail and save less space.Appears when “Compression Mode” is “Lossy” and “Output Format” is “Auto” or “JPEG”. Range 1–100.85

Tip

  • The plugin keeps the original image if the compressed version is the same size or larger.
  • The plugin skips animated GIFs and images larger than 20 MiB or 40 million pixels.
  • The plugin compresses up to 32 images per request. Any remaining images are sent as is.

Action Reference

Page Buttons and Filters

Page Header

ActionLocationDescription
Node Sync StatusIn the upper-right corner of the page, to the left of “Dry Run”Appears in multi-instance deployments with at least two online nodes. Click to see whether each node has loaded the latest instance settings. See Node Sync Status.
Dry RunUpper-right corner of the pageAvailable after the instance list finishes loading. See Dry Run.
AddUpper-right corner of the pageAvailable after the instance list finishes loading and while no save is in progress. See Add and Edit Instances.

Row Actions

Instance List

ActionLocationDescription
Move up, move downTo the right of the position number in the “Order” columnSwaps the instance with the row above or below and saves immediately. The first row can only move down, and the last row can only move up. See Reorder, Enable, or Delete Instances.
EnabledSwitch in the “Enabled” columnEnables or disables the instance and saves immediately. If the save fails, the switch returns to its previous state.
Edit iconEnd of the rowOpens the instance dialog. See Add and Edit Instances.
Delete iconEnd of the row, to the right of the edit iconOpens the “Delete Instance?” confirmation dialog. See Reorder, Enable, or Delete Instances.

Tip

These buttons and switches are disabled while a save is in progress.

Status Reference

Instance Status

The instance list shows the following statuses.

StatusMeaningNotes
Enabled (switch on)The instance runs according to “Where to Apply”.New instances are enabled by default. The plugin must be available to save the instance with the switch on.
Disabled (switch off)The instance is skipped, and its settings are retained.Channels that include the instance show it as “Disabled”.
Plugin disabledThe plugin is disabled, missing, or deleted. The instance is skipped.The “Plugin” column shows the plugin key and a gray “Plugin disabled” label.
While the instance is enabled, saving any change to the list fails with “Plugin … is missing or disabled”.
Enable the plugin in Plugin Management or disable the instance first.

List Status

The instance list area shows the following statuses.

StatusMeaningNotes
No request processing instances yetThe list is empty.The text below reads “Add an instance to inspect or modify requests before they reach the model.”
Oops! Something went wrongThe instance list failed to load.The original error appears below. Click “Retry” to reload the list.

Node Sync Status

In multi-instance deployments with at least two online nodes, the upper-right corner of the page shows one of the following summaries.

StatusMeaningNotes
Applied on … nodesAll online nodes have loaded the latest instance settings.Click the summary to see “Applied” for each node under “Nodes”.
…/… nodes updatedSome nodes are still loading the settings.Nodes that are still loading show “Updating”. See Saving and Applying Changes for sync timing.
… nodes failed to updateOne or more nodes failed to load the settings.Affected nodes show “Update Failed”, with “Settings” and the original error message below.

Saving and Applying Changes

Adding, editing, deleting, reordering, enabling, or disabling an instance immediately saves the entire list as system settings. Changes take effect immediately on the node handling the save request. Other nodes usually receive the changes within about 3 seconds through system setting synchronization, and at the latest within one sync interval, which defaults to 60 seconds.

ActionHow It Is SavedWhen It Takes Effect
Add or edit an instanceClick “Save” in the dialog.The new settings apply starting with the next request.
Reorder, enable, or disable an instanceClick a move up or move down button or the “Enabled” switch. The list saves immediately, with no notification on success.The new order and status apply starting with the next request.
Delete an instanceClick “Delete” in the “Delete Instance?” confirmation dialog. A successful save produces no notification.The instance stops running starting with the next request, including on Channels it was added to.
Add an instance to a ChannelClick “Update Channel” in the Channel drawer.See Channel Management.

Additional Details

  • Dry runs are read-only. “Dry Run” uses saved instances only. “Try It” in the dialog uses the current settings, including unsaved changes. Both leave the instance list untouched.
  • Plugin switches. Request processing operates independently of the global “Enable Plugins” switch on the Plugin Management page. Disabling an individual request processing plugin stops its instances from running and retains their settings. See Instance Status.
  • Save failures. If a list action fails to save, the server’s original error appears in a pop-up and the list stays as it was. If a save fails in the dialog, the original error appears below “Where to Apply”.

Important Notes

  • Deleting an instance affects Channels it was added to. The confirmation dialog says “… will stop processing requests, including on Channels it was added to.” Deletion is permanent.
  • Blocked requests are ineligible for retry. A request rejected by an instance returns HTTP 400 immediately, with no retry on another Channel. See Blocking and Logging.
  • Order affects results. Instances within each scope run in list order. Reordering them can change the result. Use “Dry Run” to check the result after reordering. See Execution Stages and Order.
  • Request body passthrough skips some instances. When “Pass Through Request Body” is enabled on the Channel or “Enable Request Passthrough” is enabled under “Global Model Configuration” in System Settings, the request is sent upstream as is. The “Before Format Conversion” and “Before Sending” stages are skipped, including Automatic Reasoning Effort, Image Compression, and Global Parameter Override. Channel-added instances are also skipped at “Before Reading the Request”. “Final Check” and “Check Response” run as usual, with “Final Check” inspecting the unchanged request. The usage log marks skipped “Before Sending” instances and skipped “Before Reading the Request” steps of Channel-added instances as “Not Checked”.
  • Automatic Reasoning Effort requires models with reasoning support. Select “Specific Models” on the second row of “Where to Apply” and choose only models that support reasoning. See Automatic Reasoning Effort.
  • Content Moderation sends user text to the configured endpoint. User messages, images, and text from attached documents are sent to the moderation endpoint in the settings. See Content Moderation.

Frequently Asked Questions

How is this guide?

Last updated on