@hivegpt/hiveai-angular 0.0.465 → 0.0.467

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 CHANGED
@@ -139,6 +139,7 @@ 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). |
142
143
 
143
144
  ### Voice agent
144
145
 
@@ -147,7 +148,7 @@ The chatbot includes a **voice agent** (microphone button). For it to work you m
147
148
  - **s27Token** – JWT sent as `Authorization: Bearer <token>` to `POST baseurl/ai/ask-voice`.
148
149
  - **botId** – Sent as `bot_id` in the request body.
149
150
 
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.
151
+ The **base URL** for the API comes from the library’s environment (dev or prod, controlled by **isDev**), unless you pass **baseUrl** (e.g. an ngrok URL for local development). 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.
151
152
 
152
153
  ### Minimal example
153
154