Skip to content

Commit

Permalink
refactor: ♻️ remove unused text property from PromptyDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jan 7, 2025
1 parent 0625719 commit 08dc18c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/core/src/prompty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ export interface PromptyDocument {
frontmatter: PromptyFrontmatter
content: string
messages: ChatCompletionMessageParam[]
/**
* Original markdown source of the document
*/
text: string
}

function promptyFrontmatterToMeta(frontmatter: PromptyFrontmatter): PromptArgs {
Expand Down Expand Up @@ -172,7 +168,7 @@ export function promptyParse(filename: string, text: string): PromptyDocument {
}
}
pushMessage()
return { meta, frontmatter: fm, content, messages, text }
return { meta, frontmatter: fm, content, messages }
}

export function promptyToGenAIScript(doc: PromptyDocument): string {
Expand Down

0 comments on commit 08dc18c

Please sign in to comment.