pull/643/head^2
Travis Fischer 2024-06-04 06:49:46 -05:00
rodzic 3269e9b67d
commit 2ae6a2e49a
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -1,7 +1,7 @@
import defaultKy, { type KyInstance } from 'ky'
import pThrottle from 'p-throttle'
import { assert, getEnv, throttleKy } from '../utils.js'
import { assert, getEnv, sanitizeSearchParams, throttleKy } from '../utils.js'
/**
* TODO: I'm holding off on converting this client to an `AIFunctionsProvider`
@ -515,8 +515,7 @@ export class PeopleDataLabsClient {
async companyProfile(options: peopledatalabs.CompanyLookupOptions) {
return this.ky
.get('company/enrich', {
// @ts-expect-error location is a string[] and searchparams shows a TS error heres
searchParams: { ...options }
searchParams: sanitizeSearchParams({ ...options })
})
.json<peopledatalabs.CompanyLookupResponse>()
}