16 lines
507 B
TypeScript
16 lines
507 B
TypeScript
import type { Model } from "./schema"
|
|
|
|
export interface Settings extends Readonly<Record<string, unknown>> {
|
|
readonly headers?: Readonly<Record<string, string>>
|
|
readonly body?: Readonly<Record<string, unknown>>
|
|
readonly limits?: {
|
|
readonly context: number
|
|
readonly output: number
|
|
}
|
|
}
|
|
|
|
export interface Definition<ProviderSettings extends Settings = Settings> {
|
|
readonly model: (modelID: string, settings: ProviderSettings) => Model
|
|
}
|
|
|
|
export * as ProviderPackage from "./provider-package"
|