@builder.io/ai-utils 0.0.64 → 0.0.65
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/dist/completion.d.ts +14 -5
- package/package.json +1 -1
package/dist/completion.d.ts
CHANGED
|
@@ -45,11 +45,6 @@ export interface CompletionOptions {
|
|
|
45
45
|
* The state of the builder editor.
|
|
46
46
|
*/
|
|
47
47
|
builderState?: BuilderEditorState;
|
|
48
|
-
/**
|
|
49
|
-
* Persist the thread conversation context.
|
|
50
|
-
* Defaults to `true`.
|
|
51
|
-
*/
|
|
52
|
-
persistThread?: boolean;
|
|
53
48
|
/**
|
|
54
49
|
* Additional console logs
|
|
55
50
|
*/
|
|
@@ -76,6 +71,20 @@ export interface CompletionOptions {
|
|
|
76
71
|
"semantic-tags"?: string;
|
|
77
72
|
"content-edit"?: string;
|
|
78
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* Option on how this call should handle the conversation thread.
|
|
76
|
+
*
|
|
77
|
+
* `persist`:
|
|
78
|
+
* - When there is no CompletionOptions `id`, it'll create a new thread id
|
|
79
|
+
* - When given an existing `id`, it'll look up the past thread messages and prefix the messages
|
|
80
|
+
*
|
|
81
|
+
* `ephemeral`:
|
|
82
|
+
* - Creates a new conversation each time, ignoring any existing thread history
|
|
83
|
+
* - Will not save the conversation for future use
|
|
84
|
+
*
|
|
85
|
+
* Defaults to `persist`
|
|
86
|
+
*/
|
|
87
|
+
thread?: "persist" | "ephemeral";
|
|
79
88
|
}
|
|
80
89
|
export interface BuilderEditorState {
|
|
81
90
|
/**
|