@hivegpt/hiveai-angular 0.0.467 → 0.0.468
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 +1 -2
- package/bundles/hivegpt-hiveai-angular.umd.js +4 -4
- package/bundles/hivegpt-hiveai-angular.umd.js.map +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js.map +1 -1
- package/esm2015/lib/components/chat-drawer/chat-drawer.component.js +5 -5
- package/fesm2015/hivegpt-hiveai-angular.js +4 -4
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/hivegpt-hiveai-angular.metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -139,7 +139,6 @@ In your template, add the chatbot and pass the required inputs:
|
|
|
139
139
|
| **rules** | string | No | Rules. |
|
|
140
140
|
| **gradientColors** | string[] | No | Gradient colors. |
|
|
141
141
|
| **isDev** | boolean | No | If `true`, uses dev API base URL; otherwise prod. Pass through to chat-drawer so voice/chat use the correct backend. |
|
|
142
|
-
| **baseUrl** | string | No | Optional API base URL. When set, all chat and voice requests use this URL instead of the dev/prod default (e.g. `https://your-tunnel.ngrok.io` for local/dev tunneling). |
|
|
143
142
|
|
|
144
143
|
### Voice agent
|
|
145
144
|
|
|
@@ -148,7 +147,7 @@ The chatbot includes a **voice agent** (microphone button). For it to work you m
|
|
|
148
147
|
- **s27Token** – JWT sent as `Authorization: Bearer <token>` to `POST baseurl/ai/ask-voice`.
|
|
149
148
|
- **botId** – Sent as `bot_id` in the request body.
|
|
150
149
|
|
|
151
|
-
The **base URL** for the API comes from the library’s environment (dev or prod, controlled by **isDev**)
|
|
150
|
+
The **base URL** for the API comes from the library’s environment (dev or prod, controlled by **isDev**). The library calls `POST {baseUrl}/ai/ask-voice` and uses the returned `ws_url` for the WebSocket. The chat drawer derives **conversation_id** from the current conversation and sends it with **bot_id** and **voice: "alloy"**. No extra input is needed for conversation context; ensure **apiKey**, **botId**, **userId**, **s27Token**, and **isDev** (if you need dev vs prod) are set where you use the package.
|
|
152
151
|
|
|
153
152
|
### Minimal example
|
|
154
153
|
|