fix: typecheck (#3149)
This commit is contained in:
parent
d0519be0d0
commit
59765e0157
1 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ export namespace Provider {
|
||||||
openai: async () => {
|
openai: async () => {
|
||||||
return {
|
return {
|
||||||
autoload: false,
|
autoload: false,
|
||||||
async getModel(sdk: any, modelID: string, options?: Record<string, any>) {
|
async getModel(sdk: any, modelID: string, _options?: Record<string, any>) {
|
||||||
return sdk.responses(modelID)
|
return sdk.responses(modelID)
|
||||||
},
|
},
|
||||||
options: {},
|
options: {},
|
||||||
|
|
@ -90,7 +90,7 @@ export namespace Provider {
|
||||||
region,
|
region,
|
||||||
credentialProvider: fromNodeProviderChain(),
|
credentialProvider: fromNodeProviderChain(),
|
||||||
},
|
},
|
||||||
async getModel(sdk: any, modelID: string, options?: Record<string, any>) {
|
async getModel(sdk: any, modelID: string, _options?: Record<string, any>) {
|
||||||
let regionPrefix = region.split("-")[0]
|
let regionPrefix = region.split("-")[0]
|
||||||
|
|
||||||
switch (regionPrefix) {
|
switch (regionPrefix) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue