mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-05-26 03:30:26 -04:00
feat: In-app AI Provider Configuration (#7650)
This commit is contained in:
@@ -42,6 +42,25 @@ export const useGroupSelf = function () {
|
||||
|
||||
return data || undefined;
|
||||
},
|
||||
async updateAIProviderSettings() {
|
||||
if (!groupSelfRef.value) {
|
||||
await refreshGroupSelf();
|
||||
}
|
||||
if (!groupSelfRef.value?.aiProviderSettings) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { data } = await api.groups.setAIProviderSettings(groupSelfRef.value.aiProviderSettings);
|
||||
|
||||
if (data) {
|
||||
groupSelfRef.value.aiProviderSettings = data;
|
||||
}
|
||||
|
||||
return data || undefined;
|
||||
},
|
||||
async refresh() {
|
||||
await refreshGroupSelf();
|
||||
},
|
||||
};
|
||||
|
||||
const group = actions.get();
|
||||
|
||||
Reference in New Issue
Block a user