Vercel ai gateway (#10)
* feat: use vercel ai gateway * fix: correct response handling * ci: add pipeline
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import 'dotenv/config';
|
||||
import { Consumer, consumerSchema } from './types';
|
||||
import { Tool } from './tool';
|
||||
import { BaseTool, makeRequest } from '@anthropic';
|
||||
import { BaseTool, makeRequest } from '@utils/aiGatewayClient';
|
||||
import { generatePrompt } from './prompt';
|
||||
import { generateConsumerSeed } from '@utils/generateConsumerSeed';
|
||||
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user