Repository navigation
Disable the AI function per-query quotas by default - #121424
Conversation
`ai_function_max_input_tokens_per_query`, `ai_function_max_output_tokens_per_query` and `ai_function_max_api_calls_per_query` now default to 0, which means no limit. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…e-quotas-by-default
|
Workflow [PR], commit [240bc03] Summary: ✅
AI ReviewSummaryThis PR disables the three AI-function per-query quota defaults by setting them to Tests
Final Verdict
LLVM Coverage ReportMeasured on commit 240bc03.
Changed lines: Changed C/C++ lines covered: 27/27 (100.00%) · Uncovered code |
|
|
||
| SELECT '-- compatibility = 26.9 restores the API call quota'; | ||
| SET compatibility = '26.9'; | ||
| SELECT getSetting('ai_function_allow_insecure_endpoint'), getSetting('ai_function_max_api_calls_per_query'), getSetting('ai_function_max_retries'); |
There was a problem hiding this comment.
This check only asserts ai_function_max_api_calls_per_query, but this PR also flips ai_function_max_input_tokens_per_query and ai_function_max_output_tokens_per_query to 0, and the PR description promises compatibility = '26.9' restores the previous caps for all three settings. A typo or missing history row for either token quota would still pass CI. Please extend the getSetting assertion/reference here to cover both token quota settings under compatibility = '26.9'.
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units8 translation units recompiled, 20 s compile time in total, 8 of them have a recent master baseline. |
Cherry pick #121424 to 26.8: Disable the AI function per-query quotas by default
Cherry pick #121424 to 26.9: Disable the AI function per-query quotas by default
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Cherry pick #121424 to 26.7: Disable the AI function per-query quotas by default
Drop the leaked `26.10` and `26.9` blocks; record the changes in the `26.8` block. `ai_function_max_api_calls_per_query` no longer changes in 26.8, so its entry is removed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Drop the leaked `26.10` block; record the changes in the `26.9` block. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Backport #121424 to 26.8: Disable the AI function per-query quotas by default
Backport #121424 to 26.7: Disable the AI function per-query quotas by default
Backport #121424 to 26.9: Disable the AI function per-query quotas by default
Related: #111286
Related: #114885
Disable the AI function per-query quotas by default. Used to be:
ai_function_max_input_tokens_per_queryat 1000000,ai_function_max_output_tokens_per_queryat 500000, and, since 26.8,
ai_function_max_api_calls_per_queryat 1000.All three settings now default to
0, whichAIQuotaTrackeralready treats as "no limit", sono enforcement logic changed. Setting any of them to a non-zero value enables that quota exactly
as before, and
compatibility = '26.9'restores the previous defaults.Changelog category (leave one):
Changelog entry:
The AI function per-query quotas are now disabled by default:
ai_function_max_input_tokens_per_query(previously1000000),ai_function_max_output_tokens_per_query(previously500000) andai_function_max_api_calls_per_query(previously1000) default to0, meaning no limit. To keep the previous caps, set the three settings explicitly or usecompatibility = '26.9'.Workflow [PR]
Sync PR [sync-upstream/pr/121424]
Version info
26.10.1.430-master(included in26.10and later)26.9.3.34,26.8.11.42,26.7.14.42