@mieweb/ui 0.6.1-dev.171 → 0.6.1-dev.172
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/README.md +20 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -246,6 +246,26 @@ npm run build-storybook
|
|
|
246
246
|
|
|
247
247
|
The output will be in the `storybook-static` directory.
|
|
248
248
|
|
|
249
|
+
### Configuring the Ozwell API (AI stories)
|
|
250
|
+
|
|
251
|
+
The AI stories (AIChat, Hands-Free Chat, and the DataVis NITRO **Ozwell Assistant**
|
|
252
|
+
story) call the real Ozwell backend when a key is configured and fall back to a
|
|
253
|
+
canned reply when it isn't. Set the key and endpoint from the browser console:
|
|
254
|
+
|
|
255
|
+
```js
|
|
256
|
+
// Recommended — survives reloads and is shared with the story iframe:
|
|
257
|
+
localStorage.setItem(
|
|
258
|
+
'ozwellConfig',
|
|
259
|
+
JSON.stringify({ apiKey: 'YOUR_KEY', baseURL: 'https://your-ozwell-host' })
|
|
260
|
+
);
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
`baseURL` is optional (defaults to `https://api.ozwell.ai`); other optional keys are
|
|
264
|
+
`model`, `system`, and `temperature`. Never commit a key — see
|
|
265
|
+
[src/components/AI/OZWELL-BACKEND.md](src/components/AI/OZWELL-BACKEND.md) for full
|
|
266
|
+
details, including why `window.__ozwell` is unreliable inside Storybook iframes and
|
|
267
|
+
how to proxy the key for public deploys.
|
|
268
|
+
|
|
249
269
|
## Using in Other Projects
|
|
250
270
|
|
|
251
271
|
### Method 1: NPM Package (Recommended)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mieweb/ui",
|
|
3
|
-
"version": "0.6.1-dev.
|
|
3
|
+
"version": "0.6.1-dev.172",
|
|
4
4
|
"description": "A themeable, accessible React component library built with Tailwind CSS",
|
|
5
5
|
"author": "Medical Informatics Engineering, Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
"@kerebron/editor": ">=0.7.9",
|
|
236
236
|
"@kerebron/editor-kits": ">=0.7.9",
|
|
237
237
|
"@kerebron/wasm": ">=0.7.9",
|
|
238
|
-
"@mieweb/datavis": "=1.
|
|
238
|
+
"@mieweb/datavis": "=1.6.0",
|
|
239
239
|
"ag-grid-community": ">=32.0.0",
|
|
240
240
|
"ag-grid-react": ">=32.0.0",
|
|
241
241
|
"datavis-ace": "=4.1.0",
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
"@kerebron/editor": "0.7.9",
|
|
345
345
|
"@kerebron/editor-kits": "0.7.9",
|
|
346
346
|
"@kerebron/wasm": "0.7.9",
|
|
347
|
-
"@mieweb/datavis": "=1.
|
|
347
|
+
"@mieweb/datavis": "=1.6.0",
|
|
348
348
|
"@monaco-editor/react": "^4.7.0",
|
|
349
349
|
"@playwright/test": "^1.58.2",
|
|
350
350
|
"@storybook/addon-a11y": "^10.2.11",
|