Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Routines: a bot creation draft ignores a routine model

Doğukaan Kılıçarslanf883d35336bc
diff --git a/src/lib/bot-creation-draft.ts b/src/lib/bot-creation-draft.ts
index d9c1e2d1ee..64ba2ea883 100644
--- a/src/lib/bot-creation-draft.ts
+++ b/src/lib/bot-creation-draft.ts
@@ -92,7 +92,7 @@ export class BotCreationDraft {
dispose() { if (this.avatarObjectUrl) URL.revokeObjectURL(this.avatarObjectUrl); }
private routine(input: RoutineInput, previous?: Routine): Routine {
- const { groupId: _group, resultsThreadId: _results, checks: _checks, access: _access, deliver: _deliver, schedule, ...fields } = input;
+ const { groupId: _group, resultsThreadId: _results, checks: _checks, access: _access, deliver: _deliver, modelSelection: _model, schedule, ...fields } = input;
const normalizedSchedule = schedule.type === "interval" ? {
...schedule, weekdays: schedule.weekdays ?? undefined,
window: schedule.window ?? undefined, endsAt: schedule.endsAt ?? undefined,