feat(ai): type Google request options (#39504)
This commit is contained in:
parent
cb80f47112
commit
ce2c9e7e26
2 changed files with 19 additions and 2 deletions
|
|
@ -50,14 +50,14 @@ export const configure = (input: Config = {}) => {
|
|||
})
|
||||
return {
|
||||
id,
|
||||
model: (modelID: string | ModelID) => route.model({ id: modelID }),
|
||||
model: (modelID: string | ModelID) => route.model<Gemini.ProviderOptionsInput>({ id: modelID }),
|
||||
image,
|
||||
configure,
|
||||
}
|
||||
}
|
||||
|
||||
export const provider = configure()
|
||||
export const model: ProviderPackage.Definition<Settings>["model"] = (modelID, settings) =>
|
||||
export const model: ProviderPackage.Definition<Settings, Gemini.ProviderOptionsInput>["model"] = (modelID, settings) =>
|
||||
configure({
|
||||
apiKey: settings.apiKey,
|
||||
baseURL: settings.baseURL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue