Skip to content

Commit

Permalink
equip prompt library ca config with path browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
stoerr committed Oct 7, 2024
1 parent fcb5394 commit 98c05cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ protected GPTConfiguration maybeIncludeAlreadyTranslatedTextAsExample(

if (includeExistingTranslationsInRetranslation && StringUtils.isNotBlank(alreadyTranslatedText)) {
configuration = configuration.merge(GPTConfiguration.ofContext(
"Retrieve the result of a previous translation of parts of the text. You don't need to translate this - this is just contextual information and you can draw on that for translation examples and context of the translation that is done later.",
"Retrieve the result of a previous translation of parts of a previous version of the text. " +
"You don't need to translate this - this is just contextual information and " +
"you can draw on that for translation examples and context of the translation that is done later.",
// we have to follow the final format or that is confusing for the AI
MULTITRANSLATION_SEPARATOR_START + LASTID + MULTITRANSLATION_SEPARATOR_END +
alreadyTranslatedText +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,17 @@

@AttributeDefinition(name = "Content Creation Prompts Path",
description = "Path to the content creation prompts. Either a JSON file, or a page.")
@Property(label = "Content Creation Prompts Path", description = "Path to the content creation prompts. Either a JSON file, or a page.")
@Property(label = "Content Creation Prompts Path",
description = "Path to the content creation prompts. Either a JSON file, or a page.",
property = {"widgetType=pathbrowser"}
)
String contentCreationPromptsPath();

@AttributeDefinition(name = "Side Panel Prompts Path",
description = "Path to the side panel prompts. Either a JSON file, or a page.")
@Property(label = "Side Panel Prompts Path", description = "Path to the side panel prompts. Either a JSON file, or a page.")
@Property(label = "Side Panel Prompts Path",
description = "Path to the side panel prompts. Either a JSON file, or a page.",
property = {"widgetType=pathbrowser"})
String sidePanelPromptsPath();

}

0 comments on commit 98c05cd

Please sign in to comment.