Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Nick: languages support

Nicolas3d1bb82aa278
diff --git a/apps/api/src/controllers/v1/types.ts b/apps/api/src/controllers/v1/types.ts
index 8c60c0fb9..633bbdf16 100644
--- a/apps/api/src/controllers/v1/types.ts
+++ b/apps/api/src/controllers/v1/types.ts
@@ -116,8 +116,10 @@ export const scrapeOptions = z.object({
{
message: "Invalid country code. Please use a valid ISO 3166-1 alpha-2 country code.",
}
- ).transform(val => val ? val.toUpperCase() : 'US')
+ ).transform(val => val ? val.toUpperCase() : 'US'),
+ languages: z.string().array().optional(),
}).optional(),
+
// Deprecated
geolocation: z.object({
country: z.string().optional().refine(
@@ -125,7 +127,8 @@ export const scrapeOptions = z.object({
{
message: "Invalid country code. Please use a valid ISO 3166-1 alpha-2 country code.",
}
- ).transform(val => val ? val.toUpperCase() : 'US')
+ ).transform(val => val ? val.toUpperCase() : 'US'),
+ languages: z.string().array().optional(),
}).optional(),
skipTlsVerification: z.boolean().default(false),
}).strict(strictMessage)