Skip to content

Commit da016ea

Browse files
author
Bogdan Tsechoev
committed
Merge branch 'assistant_ui_settings' into 'master'
Private chats See merge request postgres-ai/database-lab!913
2 parents 98bf221 + 9e2b1a7 commit da016ea

File tree

16 files changed

+577
-295
lines changed

16 files changed

+577
-295
lines changed

ui/packages/platform/src/api/api.js

+2-9
Original file line numberDiff line numberDiff line change
@@ -453,20 +453,13 @@ class Api {
453453

454454
updateAiBotSettings(token, orgId, orgData) {
455455
let params = {};
456-
let data = {};
457456
let headers = {
458457
Authorization: 'Bearer ' + token,
459458
prefer: 'return=representation'
460459
};
461460

462-
// if (typeof orgData.custom_prompt !== 'undefined') {
463-
// data.custom_prompt = orgData.custom_prompt;
464-
// }
465-
if (typeof orgData.model !== 'undefined') {
466-
data.ai_model = orgData.model;
467-
}
468-
params.data = {
469-
ai_bot: data
461+
if (typeof orgData.is_chat_public_by_default !== 'undefined') {
462+
params.is_chat_public_by_default = orgData.is_chat_public_by_default;
470463
}
471464

472465
return this.patch(`${this.apiServer}/orgs?id=eq.` + orgId, params, {

0 commit comments

Comments
 (0)