File size: 291 Bytes
e445b51
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
export function readBatchPromptLines(value: string): string[] {
    return value
        .split(/\r?\n/)
        .map((line) => line.trim())
        .filter((line) => line.length > 0);
}

export function formatBatchPromptHistory(prompts: string[]): string {
    return prompts.join('\n');
}