Skip to content

Commit d237b07

Browse files
authored
Don't show Kuma if the model is not set (baserow#4281)
1 parent b21adc1 commit d237b07

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "bug",
3+
"message": "Don't show the Assistant panel if the LLM_MODEL env variable is not configured",
4+
"issue_origin": "github",
5+
"issue_number": 4280,
6+
"domain": "core",
7+
"bullet_points": [],
8+
"created_at": "2025-11-18"
9+
}

enterprise/web-frontend/modules/baserow_enterprise/components/assistant/AssistantSidebarItem.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div v-if="hasPermission">
2+
<div v-if="hasPermission && isConfigured">
33
<li class="tree__item">
44
<div class="tree__action">
55
<a href="#" class="tree__link" @click.prevent="toggleRightSidebar">
@@ -39,10 +39,14 @@ export default {
3939
this.workspace.id
4040
)
4141
},
42+
isConfigured() {
43+
return this.$config.BASEROW_ENTERPRISE_ASSISTANT_LLM_MODEL !== null
44+
},
4245
},
4346
mounted() {
4447
if (
4548
this.hasPermission &&
49+
this.isConfigured &&
4650
localStorage.getItem('baserow.rightSidebarOpen') !== 'false'
4751
) {
4852
// open the right sidebar if the feature is available

enterprise/web-frontend/modules/baserow_enterprise/module.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,9 @@ export default function () {
4848
// imports the original. We do this so that we can use the existing variables,
4949
// mixins, placeholders etc.
5050
this.options.css[0] = path.resolve(__dirname, 'assets/scss/default.scss')
51+
52+
if (this.options.publicRuntimeConfig) {
53+
this.options.publicRuntimeConfig.BASEROW_ENTERPRISE_ASSISTANT_LLM_MODEL =
54+
process.env.BASEROW_ENTERPRISE_ASSISTANT_LLM_MODEL || null
55+
}
5156
}

0 commit comments

Comments
 (0)