@tensorpass/aiconnect-elements 0.1.9 → 0.1.11
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 +3 -1
- package/dist/aiconnect-elements.js +34 -31
- package/dist/aiconnect-elements.js.map +4 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,9 +4,11 @@ The AI Connect interface modules as custom elements, for a page without React, s
|
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
6
|
<script src="https://cdn.jsdelivr.net/npm/@tensorpass/aiconnect-elements@0.1.0/dist/aiconnect-elements.js" defer></script>
|
|
7
|
-
<aiconnect-chat variant="popup" mcp="/api/mcp"></aiconnect-chat>
|
|
7
|
+
<aiconnect-chat variant="popup" mcp="/api/mcp" credit></aiconnect-chat>
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
+
The `credit` attribute draws the TensorPass credit under the question box, left out inside the TensorPass app; `credit='{"href": "https://example.com/ai"}'` points its link at your own page. A child with `slot="footer"` adds your own line beside it.
|
|
11
|
+
|
|
10
12
|
`dist/aiconnect-loader.js`, about 8 KB, loads the script only when the visitor reaches for a chat. `dist/aiconnect-callback.js` is the sign in return page's script.
|
|
11
13
|
|
|
12
14
|
Docs: https://tensorpass.app/docs/modules/web-components.
|