Model-name post-processing is rebuilt around an explicit trailing @key:value modifier syntax (thinking/effort/temperature/topp) that overrides request fields, survives model mapping, and records conversion diagnostics on the consume log. - Legacy naked aliases (-thinking, -nothinking, -thinking-<budget>, effort tails) now parse only for positively matched families (gpt-*/o-series, claude-*, gemini-*, incl. vendor/ namespaces); names like qwen-max stay opaque. EffortTailModelIDs remains the escape hatch for real in-family IDs such as gpt-5.1-codex-max. - Billing identity resolves once in ModelPriceHelper via a ladder: configured request name first (legacy wildcard entries intact), then canonical billing names rebuilt from parsed intent (base@effort:E@thinking:S, then base@thinking:S; order, duplicates, and budget values are irrelevant; temperature/topp never priced), then base. Routing and token limits fall back through RoutingMatchModelName; pricing lookups stay wildcard-only. - Pass-through stays byte-identical: modifiers and aliases are neither parsed nor validated there and forward verbatim for the upstream (or a chained gateway) to interpret. - Unknown modifier keys and invalid known-key values are rejected with 400; models whose real names contain @tag:value are exempted via the thinking-suffix blacklist, which now supports re:-prefixed Go regex entries. - Claude reasoning render coerces unsupported combinations (disable, adaptive, budgets) with warning diagnostics instead of erroring; native-protocol requests without host syntax pass through untouched. BREAKING(openrouter): drop the host-invented "-thinking" model-name alias (added in 4f6d16e3) that trimmed any *-thinking model on OpenRouter channels and injected reasoning.enabled. It matched too broadly and mangled real model IDs such as kimi-k2-thinking. Migration: use some-model@thinking:on, or keep the old public name via a channel model mapping {"some-model-thinking": "some-model@thinking:on"}. Claude/Gemini family aliases (incl. anthropic/claude-*-thinking) keep working via the family whitelist.
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| audit.go | Loading commit data... | |
| auth_flow_test.go | Loading commit data... | |
| auth_session.go | Loading commit data... | |
| auth_session_test.go | Loading commit data... | |
| authz.go | Loading commit data... | |
| billing.go | Loading commit data... | |
| billing_option_test.go | Loading commit data... | |
| channel-billing.go | Loading commit data... | |
| channel-test.go | Loading commit data... | |
| channel.go | Loading commit data... | |
| channel_affinity_cache.go | Loading commit data... | |
| channel_authz.go | Loading commit data... | |
| channel_authz_test.go | Loading commit data... | |
| channel_pin_retry_test.go | Loading commit data... | |
| channel_task_plugin_bind_test.go | Loading commit data... | |
| channel_task_plugin_validation_test.go | Loading commit data... | |
| channel_test_internal_test.go | Loading commit data... | |
| channel_upstream_update.go | Loading commit data... | |
| channel_upstream_update_test.go | Loading commit data... | |
| checkin.go | Loading commit data... | |
| codex_usage.go | Loading commit data... | |
| custom_oauth.go | Loading commit data... | |
| deployment.go | Loading commit data... | |
| group.go | Loading commit data... | |
| image.go | Loading commit data... | |
| log.go | Loading commit data... | |
| midjourney.go | Loading commit data... | |
| misc.go | Loading commit data... | |
| misc_oidc_test.go | Loading commit data... | |
| missing_models.go | Loading commit data... | |
| model.go | Loading commit data... | |
| model_list_test.go | Loading commit data... | |
| model_meta.go | Loading commit data... | |
| model_owned_by_test.go | Loading commit data... | |
| model_sync.go | Loading commit data... | |
| oauth.go | Loading commit data... | |
| option.go | Loading commit data... | |
| option_claude_test.go | Loading commit data... | |
| option_gemini_test.go | Loading commit data... | |
| passkey.go | Loading commit data... | |
| passkey_test.go | Loading commit data... | |
| payment_compliance.go | Loading commit data... | |
| payment_webhook_availability.go | Loading commit data... | |
| payment_webhook_availability_test.go | Loading commit data... | |
| perf_metrics.go | Loading commit data... | |
| performance.go | Loading commit data... | |
| playground.go | Loading commit data... | |
| plugin_endpoint_test.go | Loading commit data... | |
| plugin_native_e2e_test.go | Loading commit data... | |
| plugin_protocol.go | Loading commit data... | |
| plugin_protocol_limiter.go | Loading commit data... | |
| plugin_protocol_limiter_test.go | Loading commit data... | |
| plugin_protocol_sdk_test.go | Loading commit data... | |
| plugin_protocol_test.go | Loading commit data... | |
| prefill_group.go | Loading commit data... | |
| pricing.go | Loading commit data... | |
| rankings.go | Loading commit data... | |
| ratio_config.go | Loading commit data... | |
| ratio_sync.go | Loading commit data... | |
| redemption.go | Loading commit data... | |
| relay.go | Loading commit data... | |
| relay_count_tokens_test.go | Loading commit data... | |
| relay_error_log_test.go | Loading commit data... | |
| relay_task_plugin_test.go | Loading commit data... | |
| return_path.go | Loading commit data... | |
| return_path_test.go | Loading commit data... | |
| revalidated_response.go | Loading commit data... | |
| secure_verification.go | Loading commit data... | |
| setup.go | Loading commit data... | |
| subscription.go | Loading commit data... | |
| subscription_payment_creem.go | Loading commit data... | |
| subscription_payment_epay.go | Loading commit data... | |
| subscription_payment_stripe.go | Loading commit data... | |
| subscription_payment_waffo_pancake.go | Loading commit data... | |
| system_info.go | Loading commit data... | |
| system_task.go | Loading commit data... | |
| system_task_handlers.go | Loading commit data... | |
| task.go | Loading commit data... | |
| task_generic_test.go | Loading commit data... | |
| task_log_view_test.go | Loading commit data... | |
| task_plugin.go | Loading commit data... | |
| task_plugin_debug.go | Loading commit data... | |
| task_plugin_debug_test.go | Loading commit data... | |
| task_plugin_test.go | Loading commit data... | |
| telegram.go | Loading commit data... | |
| telegram_test.go | Loading commit data... | |
| theme_compat_test.go | Loading commit data... | |
| token.go | Loading commit data... | |
| token_auto_groups_test.go | Loading commit data... | |
| token_test.go | Loading commit data... | |
| topup.go | Loading commit data... | |
| topup_creem.go | Loading commit data... | |
| topup_quota_limit_test.go | Loading commit data... | |
| topup_stripe.go | Loading commit data... | |
| topup_waffo.go | Loading commit data... | |
| topup_waffo_pancake.go | Loading commit data... | |
| topup_waffo_pancake_test.go | Loading commit data... | |
| twofa.go | Loading commit data... | |
| uptime_kuma.go | Loading commit data... | |
| usedata.go | Loading commit data... | |
| usedata_flow_test.go | Loading commit data... | |
| user.go | Loading commit data... | |
| user_manage_test.go | Loading commit data... | |
| vendor_meta.go | Loading commit data... | |
| video_proxy.go | Loading commit data... | |
| wechat.go | Loading commit data... |