Implementation AiFeatureSettingUpdate GraphQL node
What does this MR do and why?
Implementation AiFeatureSettingUpdate GraphQL node. It upsets a ::Ai::FeatureSetting.
How to set up and validate locally
- Activate the
ai_custom_modelFF. - Login as an admin and visit http://gdk.test:3000/-/graphql-explorer
- Ensure you have a
Ai::SelfHostedModelinstance created and note the ID below - Do the GQL mutation below.
mutation AiFeatureSettingUpdate($input: AiFeatureSettingUpdateInput!) {
aiFeatureSettingUpdate(input: $input) {
aiFeatureSetting {
feature
provider
selfHostedModel {
name
id
endpoint
}
}
}
}
Inputs:
{
"input": {
"feature": "DUO_CHAT",
"provider": "SELF_HOSTED",
"selfHostedModelId": "gid://gitlab/Ai::SelfHostedModel/1"
}
}
Enum type for feature setting:
Enum type for providers:
Related to #476661 (closed)
Edited by Lucas Charles

