kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/643/head^2
rodzic
3269e9b67d
commit
2ae6a2e49a
|
@ -1,7 +1,7 @@
|
||||||
import defaultKy, { type KyInstance } from 'ky'
|
import defaultKy, { type KyInstance } from 'ky'
|
||||||
import pThrottle from 'p-throttle'
|
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`
|
* TODO: I'm holding off on converting this client to an `AIFunctionsProvider`
|
||||||
|
@ -515,8 +515,7 @@ export class PeopleDataLabsClient {
|
||||||
async companyProfile(options: peopledatalabs.CompanyLookupOptions) {
|
async companyProfile(options: peopledatalabs.CompanyLookupOptions) {
|
||||||
return this.ky
|
return this.ky
|
||||||
.get('company/enrich', {
|
.get('company/enrich', {
|
||||||
// @ts-expect-error location is a string[] and searchparams shows a TS error heres
|
searchParams: sanitizeSearchParams({ ...options })
|
||||||
searchParams: { ...options }
|
|
||||||
})
|
})
|
||||||
.json<peopledatalabs.CompanyLookupResponse>()
|
.json<peopledatalabs.CompanyLookupResponse>()
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue