kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/701/head
rodzic
1ae522b610
commit
d6c606eb38
|
@ -20,6 +20,8 @@ import { openmeteo } from './open-meteo'
|
|||
export class OpenMeteoClient extends AIFunctionsProvider {
|
||||
protected readonly ky: KyInstance
|
||||
|
||||
protected readonly apiBaseUrl: string
|
||||
|
||||
constructor({
|
||||
apiBaseUrl,
|
||||
ky = defaultKy
|
||||
|
@ -30,6 +32,8 @@ export class OpenMeteoClient extends AIFunctionsProvider {
|
|||
} = {}) {
|
||||
super()
|
||||
|
||||
this.apiBaseUrl = apiBaseUrl
|
||||
|
||||
this.ky = ky.extend({
|
||||
prefixUrl: apiBaseUrl
|
||||
})
|
||||
|
|
Ładowanie…
Reference in New Issue