kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: remove zod positive and nonnegative constraints for input schemas due to possible compat issue
rodzic
7d3c7ca4f8
commit
35d6fdc42a
|
@ -321,7 +321,6 @@ export namespace diffbot {
|
|||
size: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(100)
|
||||
.optional()
|
||||
.describe('Number of results to return')
|
||||
|
|
|
@ -190,16 +190,10 @@ export namespace hackernews {
|
|||
.describe(
|
||||
'Filter by numeric range (created_at_i, points, or num_comments); (created_at_i is a timestamp in seconds). Ex: numericFilters=points>100,num_comments>=1000'
|
||||
),
|
||||
page: z
|
||||
.number()
|
||||
.int()
|
||||
.nonnegative()
|
||||
.optional()
|
||||
.describe('Page number to return'),
|
||||
page: z.number().int().optional().describe('Page number to return'),
|
||||
hitsPerPage: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.optional()
|
||||
.describe('Number of results to return per page (defaults to 50)'),
|
||||
sortBy: hackernews.searchSortBySchema
|
||||
|
|
|
@ -43,8 +43,8 @@ export namespace hunter {
|
|||
export const DomainSearchOptionsSchema = z.object({
|
||||
domain: z.string().optional().describe('domain to search for'),
|
||||
company: z.string().optional().describe('company name to search for'),
|
||||
limit: z.number().int().positive().optional(),
|
||||
offset: z.number().int().nonnegative().optional(),
|
||||
limit: z.number().int().optional(),
|
||||
offset: z.number().int().optional(),
|
||||
type: z.enum(['personal', 'generic']).optional(),
|
||||
seniority: z.union([SenioritySchema, z.array(SenioritySchema)]).optional(),
|
||||
department: z
|
||||
|
@ -61,7 +61,7 @@ export namespace hunter {
|
|||
company: z.string().optional().describe('company name to search for'),
|
||||
first_name: z.string().describe("person's first name"),
|
||||
last_name: z.string().describe("person's last name"),
|
||||
max_duration: z.number().int().positive().min(3).max(20).optional()
|
||||
max_duration: z.number().int().min(3).max(20).optional()
|
||||
})
|
||||
export type EmailFinderOptions = z.infer<typeof EmailFinderOptionsSchema>
|
||||
|
||||
|
|
|
@ -245,7 +245,6 @@ export namespace perigon {
|
|||
page: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(10_000)
|
||||
.default(0)
|
||||
.optional()
|
||||
|
@ -253,7 +252,6 @@ export namespace perigon {
|
|||
size: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(DEFAULT_PAGE_SIZE)
|
||||
.optional()
|
||||
.describe('Number of results to return per page')
|
||||
|
@ -329,7 +327,6 @@ export namespace perigon {
|
|||
size: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(DEFAULT_PAGE_SIZE)
|
||||
.optional()
|
||||
.describe('Number of results to return per page')
|
||||
|
@ -375,13 +372,11 @@ export namespace perigon {
|
|||
numEmployeesFrom: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.optional()
|
||||
.describe('Minimum number of employees.'),
|
||||
numEmployeesTo: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.optional()
|
||||
.describe('Maximum number of employees.'),
|
||||
ipoFrom: z
|
||||
|
@ -395,7 +390,6 @@ export namespace perigon {
|
|||
size: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(DEFAULT_PAGE_SIZE)
|
||||
.optional()
|
||||
.describe('Number of results to return per page')
|
||||
|
|
|
@ -332,11 +332,10 @@ export namespace predictleads {
|
|||
.string()
|
||||
.optional()
|
||||
.describe('Signals found until specified date (ISO 8601).'),
|
||||
page: z.number().int().positive().default(1).optional(),
|
||||
page: z.number().int().default(1).optional(),
|
||||
limit: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(MAX_PAGE_SIZE)
|
||||
.default(DEFAULT_PAGE_SIZE)
|
||||
.optional(),
|
||||
|
@ -368,7 +367,6 @@ export namespace predictleads {
|
|||
limit: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(MAX_PAGE_SIZE)
|
||||
.default(DEFAULT_PAGE_SIZE)
|
||||
.optional(),
|
||||
|
@ -407,7 +405,6 @@ export namespace predictleads {
|
|||
limit: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(MAX_PAGE_SIZE)
|
||||
.default(DEFAULT_PAGE_SIZE)
|
||||
.optional()
|
||||
|
@ -422,7 +419,6 @@ export namespace predictleads {
|
|||
limit: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(MAX_PAGE_SIZE)
|
||||
.default(DEFAULT_PAGE_SIZE)
|
||||
.optional()
|
||||
|
@ -436,7 +432,6 @@ export namespace predictleads {
|
|||
limit: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(MAX_PAGE_SIZE)
|
||||
.default(DEFAULT_PAGE_SIZE)
|
||||
.optional()
|
||||
|
@ -450,7 +445,6 @@ export namespace predictleads {
|
|||
limit: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(MAX_PAGE_SIZE)
|
||||
.default(DEFAULT_PAGE_SIZE)
|
||||
.optional()
|
||||
|
@ -465,7 +459,6 @@ export namespace predictleads {
|
|||
limit: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(MAX_PAGE_SIZE)
|
||||
.default(DEFAULT_PAGE_SIZE)
|
||||
.optional()
|
||||
|
|
|
@ -674,7 +674,6 @@ export class SerpAPIClient extends AIFunctionsProvider {
|
|||
num: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.default(5)
|
||||
.optional()
|
||||
.describe('number of results to return')
|
||||
|
|
|
@ -16,11 +16,10 @@ export namespace serper {
|
|||
autocorrect: z.boolean().default(true).optional(),
|
||||
gl: z.string().default('us').optional(),
|
||||
hl: z.string().default('en').optional(),
|
||||
page: z.number().int().positive().default(1).optional(),
|
||||
page: z.number().int().default(1).optional(),
|
||||
num: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.default(10)
|
||||
.optional()
|
||||
.describe('number of results to return')
|
||||
|
|
|
@ -16,7 +16,6 @@ export namespace wolframalpha {
|
|||
maxchars: z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.default(6000)
|
||||
.optional()
|
||||
.describe('max characters to generate in the response')
|
||||
|
|
Ładowanie…
Reference in New Issue