init
This commit is contained in:
7
src/provider.ts
Normal file
7
src/provider.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import {LLMMessage, LLMOptions, LLMRequest} from './llm.ts';
|
||||
|
||||
export type AbortablePromise<T> = Promise<T> & {abort: () => void};
|
||||
|
||||
export abstract class LLMProvider {
|
||||
abstract ask(message: string, options: LLMRequest): AbortablePromise<LLMMessage[]>;
|
||||
}
|
||||
Reference in New Issue
Block a user