Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e2b1a7

Browse files
Private chats
1 parent c7aca2c commit 9e2b1a7

File tree

16 files changed

+577
-295
lines changed

16 files changed

+577
-295
lines changed

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

Lines changed: 2 additions & 9 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /