on-codemerge
Version:
A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product
13 lines (12 loc) • 477 B
TypeScript
import { AIDriver, DriverOptions, OptionsDescription } from './AIDriver';
export interface HuggingFaceOptions extends DriverOptions {
topK?: number;
repetitionPenalty?: number;
maxLength?: number;
}
export declare class HuggingFaceDriver implements AIDriver<HuggingFaceOptions> {
private apiKey;
constructor(apiKey: string);
getOptionsDescription(): OptionsDescription;
generateText(prompt: string, options?: HuggingFaceOptions): Promise<string>;
}