oblien 1.2.2 → 1.2.3
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/src/chat/index.js +2 -2
package/package.json
CHANGED
package/src/chat/index.js
CHANGED
|
@@ -167,7 +167,7 @@ export class OblienChat {
|
|
|
167
167
|
* // Get by namespace (object)
|
|
168
168
|
* const guest = await chat.getGuest({ namespace: 'guest-1-2-3-4' });
|
|
169
169
|
*/
|
|
170
|
-
async getGuest(options) {
|
|
170
|
+
async getGuest(options, getSessions = false) {
|
|
171
171
|
// Handle string usage: getGuest('namespace')
|
|
172
172
|
if (typeof options === 'string') {
|
|
173
173
|
options = { namespace: options };
|
|
@@ -184,7 +184,7 @@ export class OblienChat {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
try {
|
|
187
|
-
const response = await this.client.post(`ai/guest/info`, {
|
|
187
|
+
const response = await this.client.post(getSessions ? `ai/guest/sessions` : `ai/guest/info`, {
|
|
188
188
|
ip,
|
|
189
189
|
fingerprint,
|
|
190
190
|
namespace: guestId,
|