Vercel ai gateway (#10)

* feat: use vercel ai gateway

* fix: correct response handling

* ci: add pipeline
This commit is contained in:
2025-10-11 15:07:54 +02:00
committed by GitHub
parent 99a04d2a3e
commit 017e538396
11 changed files with 1116 additions and 1003 deletions

View File

@@ -91,7 +91,7 @@ const coreSchema = z.object({
});
const routinesSchema = z.object({
weekday: z.record(weekdayActivitySchema),
weekday: z.record(z.string(), weekdayActivitySchema),
weekend: z.array(z.string()),
commute: z.object({
method: z.string(),
@@ -111,7 +111,7 @@ const financesSchema = z.object({
subscriptions: z.array(subscriptionSchema),
spending_patterns: z.object({
impulsive_score: z.number().min(1).max(10),
categories: z.record(spendingCategorySchema)
categories: z.record(z.string(), spendingCategorySchema)
})
});