@builder.io/ai-utils 0.0.23 → 0.0.24

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.
@@ -43,6 +43,11 @@ export interface CompletionOptions {
43
43
  * The state of the builder editor.
44
44
  */
45
45
  builderState?: BuiderEditorState;
46
+ /**
47
+ * Persist the thread conversation context.
48
+ * Defaults to `true`.
49
+ */
50
+ persistThread?: boolean;
46
51
  /**
47
52
  * Additional console logs
48
53
  */
package/dist/events.d.ts CHANGED
@@ -121,6 +121,9 @@ export interface ContentCompleteEvent {
121
121
  }
122
122
  export interface ContentComplete {
123
123
  threadId: string;
124
+ completionId: string;
125
+ modelId: string;
126
+ duration: number;
124
127
  message: AssistantMessage;
125
128
  ts: number;
126
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",