fix: schedule run failed

This commit is contained in:
Acbox
2026-02-15 16:12:53 +08:00
parent c014fd3095
commit 37360ad8e4
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -95,6 +95,7 @@ export const chatModule = new Elysia({ prefix: '/chat' })
}),
})
.post('/trigger-schedule', async ({ body, bearer }) => {
console.log('trigger-schedule', body)
const authFetcher = createAuthFetcher(bearer)
const { triggerSchedule } = createAgent({
model: body.model as ModelConfig,
+1 -2
View File
@@ -314,10 +314,9 @@ func (r *Resolver) TriggerSchedule(ctx context.Context, botID string, payload sc
return fmt.Errorf("schedule command is required")
}
chatID := "schedule-" + payload.ID
req := conversation.ChatRequest{
BotID: botID,
ChatID: chatID,
ChatID: botID,
Query: payload.Command,
UserID: payload.OwnerUserID,
Token: token,