Files
opencode/packages/llm/src/providers/google.ts
opencode-agent[bot] ba8c920639 chore: generate
2026-05-08 20:57:36 +00:00

19 lines
510 B
TypeScript

import type { RouteModelInput } from "../route/client"
import { Provider } from "../provider"
import { ProviderID, type ModelID } from "../schema"
import * as Gemini from "../protocols/gemini"
export const id = ProviderID.make("google")
export const routes = [Gemini.route]
export const model = (
id: string | ModelID,
options: Omit<RouteModelInput, "id" | "baseURL"> & { readonly baseURL?: string } = {},
) => Gemini.model({ ...options, id })
export const provider = Provider.make({
id,
model,
})