16 lines
386 B
TypeScript
16 lines
386 B
TypeScript
export abstract class MultiModalModel {
|
|
/**
|
|
* starts the model
|
|
*/
|
|
abstract start(): Promise<void>;
|
|
|
|
/**
|
|
* stops the model
|
|
*/
|
|
abstract stop(): Promise<void>;
|
|
|
|
// Defines a streaming interface for chat interactions.
|
|
// The implementation will vary based on the specific AI model.
|
|
abstract chatStream(input: ReadableStream<string>): ReadableStream<string>;
|
|
}
|