/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/core/src/provider.ts
25 строк
756 B
Kit Langton
refactor(schema): extract shared public schemas (#33571)
24 июн 2026, 05:31
Не верифицирован
24 июн 2026, 05:31
516cfe4
Код
Авторство
О чём код?
export * as ProviderV2 from "./provider" import { Types } from "effect" import { Provider } from "@opencode-ai/schema/provider" export const ID = Provider.ID export type ID = typeof ID.Type export const AISDK = Provider.AISDK export const Native = Provider.Native export const Api = Provider.Api export type Api = Provider.Api export type MutableApi<T extends Api = Api> = T extends Api ? Omit<Types.DeepMutable<T>, "settings"> & (undefined extends T["settings"] ? { settings?: any } : { settings: any }) : never export const Request = Provider.Request export type Request = Provider.Request export const Info = Provider.Info export type Info = Provider.Info export type MutableInfo = Omit<Types.DeepMutable<Info>, "api"> & { api: MutableApi }