@scalio-cloud/ui 0.58.0 → 0.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/react/ai.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalio-cloud/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"description": "Scalio Control Room design tokens, Tailwind preset, self-hosted fonts, the shared app header, sign-in layout, sidebar and page blocks",
|
|
5
5
|
"license": "SEE LICENSE IN README.md",
|
|
6
6
|
"private": false,
|
package/react/ai.js
CHANGED
|
@@ -226,7 +226,8 @@ function aiApi(api, paths) {
|
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
// Props: value (public_settings `ai`), status ({licensed, managed, defaults
|
|
229
|
+
// Props: value (public_settings `ai`), status ({licensed, managed, defaults, scalio, local}; `local: false` hides Ollama,
|
|
230
|
+
// e.g. on SaaS where the server cannot reach the customer's network), onSave(patch) -> Promise,
|
|
230
231
|
// client (aiApi; optional, without it no usage block), features ([{key, label, hint, max}]), canReset,
|
|
231
232
|
// demo, lang, labels, notify(message, tone), formatError(err).
|
|
232
233
|
function AiSettingsPanel(props) {
|
|
@@ -290,6 +291,7 @@ function AiSettingsPanel(props) {
|
|
|
290
291
|
h("select", { id: "ai-provider", className: "scalio-input", value: p, disabled: off, "data-testid": "ai-provider-select",
|
|
291
292
|
onChange: (e) => set({ activeProvider: e.target.value }) },
|
|
292
293
|
PROVIDERS.filter((x) => x !== "scalio" || status.scalio !== false || p === "scalio")
|
|
294
|
+
.filter((x) => x !== "ollama" || status.local !== false || p === "ollama")
|
|
293
295
|
.map((x) => h("option", { key: x, value: x }, PROVIDER_NAMES[x])))));
|
|
294
296
|
}
|
|
295
297
|
if (!managed && p === "scalio") {
|