feat(media-search): fix type errors

This commit is contained in:
ItzCrazyKns
2025-12-13 22:15:29 +05:30
parent 13ae0b9451
commit ff4cf98b50
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ const searchImages = async (
query: z.string().describe('The image search query.'), query: z.string().describe('The image search query.'),
}); });
const res = await llm.generateObject<z.infer<typeof schema>>({ const res = await llm.generateObject<typeof schema>({
messages: [ messages: [
{ {
role: 'system', role: 'system',

View File

@@ -28,7 +28,7 @@ const searchVideos = async (
query: z.string().describe('The video search query.'), query: z.string().describe('The video search query.'),
}); });
const res = await llm.generateObject<z.infer<typeof schema>>({ const res = await llm.generateObject<typeof schema>({
messages: [ messages: [
{ {
role: 'system', role: 'system',