chore: generate
This commit is contained in:
@@ -5,10 +5,7 @@ export function stripPromptPartIDs<Part extends { id: string; messageID: string;
|
||||
return rest
|
||||
}
|
||||
|
||||
export function expandPastedTextPlaceholders(
|
||||
text: string,
|
||||
parts: readonly unknown[],
|
||||
) {
|
||||
export function expandPastedTextPlaceholders(text: string, parts: readonly unknown[]) {
|
||||
return parts.reduce<string>((result, part) => {
|
||||
if (!isPastedTextPart(part)) return result
|
||||
return result.replace(part.source.text.value, part.text)
|
||||
|
||||
Reference in New Issue
Block a user