|
6 | 6 | // Site Customize -- dynamically customize the look and configuration |
7 | 7 | // of CoCalc for the client. |
8 | 8 |
|
| 9 | +// cSpell:ignore TOSurl PAYGO nonfree tagmanager |
| 10 | + |
9 | 11 | import { fromJS, List, Map } from "immutable"; |
10 | 12 | import { join } from "path"; |
11 | 13 | import { useIntl } from "react-intl"; |
@@ -107,6 +109,7 @@ export interface CustomizeState { |
107 | 109 | google_vertexai_enabled: boolean; |
108 | 110 | mistral_enabled: boolean; |
109 | 111 | anthropic_enabled: boolean; |
| 112 | + xai_enabled: boolean; |
110 | 113 | ollama_enabled: boolean; |
111 | 114 | custom_openai_enabled: boolean; |
112 | 115 | neural_search_enabled: boolean; |
@@ -215,6 +218,7 @@ export class CustomizeStore extends Store<CustomizeState> { |
215 | 218 | custom_openai: this.get("custom_openai_enabled"), |
216 | 219 | mistralai: this.get("mistral_enabled"), |
217 | 220 | anthropic: this.get("anthropic_enabled"), |
| 221 | + xai: this.get("xai_enabled"), |
218 | 222 | user: this.get("user_defined_llm"), |
219 | 223 | }; |
220 | 224 | } |
@@ -261,7 +265,7 @@ export class CustomizeActions extends Actions<CustomizeState> { |
261 | 265 | unlicensed_project_timetravel_limit: undefined, |
262 | 266 | }); |
263 | 267 | }; |
264 | | - |
| 268 | + |
265 | 269 | reload = async () => { |
266 | 270 | await loadCustomizeState(); |
267 | 271 | }; |
|
0 commit comments