@butlerbot/sdk 0.0.7 → 0.0.8
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CONFIG } from "../config";
|
|
2
|
-
import {
|
|
2
|
+
import { RequestResponseV4 } from "../types/type_registry";
|
|
3
3
|
import { ConversationStateResponse } from "../types/state/convo_state_response";
|
|
4
4
|
export type DialogueRequestParams = {
|
|
5
5
|
/** Unique identifier for the chat session */
|
|
@@ -38,7 +38,7 @@ export type ConversationOptions = {
|
|
|
38
38
|
/** The API version to use */
|
|
39
39
|
chatApiV?: APIPath;
|
|
40
40
|
};
|
|
41
|
-
export type RequestResponse =
|
|
41
|
+
export type RequestResponse = RequestResponseV4;
|
|
42
42
|
export declare class Conversation {
|
|
43
43
|
convoId?: string;
|
|
44
44
|
apiKey: string;
|
|
@@ -13,7 +13,7 @@ exports.Conversation = void 0;
|
|
|
13
13
|
const eventsource_1 = require("eventsource");
|
|
14
14
|
const config_1 = require("../config");
|
|
15
15
|
const url_formatter_1 = require("../util/url_formatter");
|
|
16
|
-
const DEFAULT_CONVO_API_V = "
|
|
16
|
+
const DEFAULT_CONVO_API_V = "v4";
|
|
17
17
|
class Conversation {
|
|
18
18
|
constructor(config) {
|
|
19
19
|
this.convoId = config.convoId;
|