Allow AIGW timeout setting on GitLab Dedicated instances
What does this MR do and why?
Allows GitLab Dedicated admins to configure the AI Gateway request timeout setting, which was previously only available on self-managed instances.
The ai_gateway_timeout_seconds setting was gated behind manage_self_hosted_models_settings, which is blocked on Dedicated instances (via self_hosted_models_allowed → self_hosted_enabled_for_dedicated?). This caused Dedicated customers to be stuck with the default timeout, leading to A1000 errors when LLM responses exceeded it.
Changes:
- Add a new
update_ai_gateway_timeoutpermission, enabled for admins. Unlikemanage_self_hosted_models_settings, this is not blocked on Dedicated instances. - Update the
DuoSettingsUpdateGraphQL mutation to check the new permission forai_gateway_timeout_seconds(in addition tomanage_self_hosted_models_settings). - Expose
can_manage_aigw_timeoutfromAiConfigurationPresenterto the frontend. - Move the timeout form in the Vue component to render independently of the self-hosted models block, controlled by
canManageAigwTimeout.
References
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist.
Closes #603860 (closed)
Edited by Martin Wortschack