ai-utils.js
Version:
Build AI applications, chatbots, and agents with JavaScript and TypeScript.
9 lines (8 loc) • 467 B
TypeScript
import { FunctionOptions } from "../FunctionOptions.js";
import { Model, ModelSettings } from "../Model.js";
export interface ImageGenerationModelSettings extends ModelSettings {
}
export interface ImageGenerationModel<PROMPT, RESPONSE, SETTINGS extends ImageGenerationModelSettings> extends Model<SETTINGS> {
generateImageResponse(prompt: PROMPT, options?: FunctionOptions<SETTINGS>): PromiseLike<RESPONSE>;
extractBase64Image(response: RESPONSE): string;
}