@builder.io/ai-utils 0.5.29 → 0.5.30

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.5.29",
3
+ "version": "0.5.30",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -193,6 +193,7 @@ export interface CodeGenInputOptions {
193
193
  attachments?: Attachment[];
194
194
  beforeCommit?: string;
195
195
  workingDirectory?: string;
196
+ modelOverride?: string;
196
197
  builderContent?: BuilderContent;
197
198
  framework?: CodeGenFramework;
198
199
  styleLibrary?: CodeGenStyleLibrary;
@@ -579,9 +580,9 @@ export interface GenerateUserMessage {
579
580
  includeBaseFiles?: boolean;
580
581
  skipSearch?: boolean;
581
582
  attachments?: Attachment[];
582
- debugMode?: boolean;
583
583
  logsCheckpoint?: boolean;
584
584
  dropAbortedPrompt?: boolean;
585
+ modelOverride?: string;
585
586
  }
586
587
  export interface UserInput {
587
588
  userMessage: GenerateUserMessage | undefined;
@@ -594,6 +595,7 @@ export interface UserInput {
594
595
  toolResults: ContentMessageItemToolResult[];
595
596
  user: UserSource;
596
597
  patchFusionConfig?: Partial<FusionConfig> | undefined;
598
+ modelOverride?: string;
597
599
  }
598
600
  export interface CodegenTurn {
599
601
  state: "running" | "done" | "error";
package/src/messages.d.ts CHANGED
@@ -65,6 +65,8 @@ export interface ContentMessageItemThinking {
65
65
  export interface ContentMessageItemRedactedThinking {
66
66
  type: "redacted_thinking";
67
67
  data: string;
68
+ source?: "openai";
69
+ id?: string;
68
70
  }
69
71
  export interface ContentMessageItemToolUse {
70
72
  type: "tool_use";