provider.ts 757 B

12345678910111213141516171819202122232425
  1. export * as ProviderV2 from "./provider"
  2. import { Types } from "effect"
  3. import { Provider } from "@kirincode-ai/schema/provider"
  4. export const ID = Provider.ID
  5. export type ID = typeof ID.Type
  6. export const AISDK = Provider.AISDK
  7. export const Native = Provider.Native
  8. export const Api = Provider.Api
  9. export type Api = Provider.Api
  10. export type MutableApi<T extends Api = Api> = T extends Api
  11. ? Omit<Types.DeepMutable<T>, "settings"> & (undefined extends T["settings"] ? { settings?: any } : { settings: any })
  12. : never
  13. export const Request = Provider.Request
  14. export type Request = Provider.Request
  15. export const Info = Provider.Info
  16. export type Info = Provider.Info
  17. export type MutableInfo = Omit<Types.DeepMutable<Info>, "api"> & { api: MutableApi }