Skip to content

Commit

Permalink
[Obs AI Assistant] Add comment (elastic#185022)
Browse files Browse the repository at this point in the history
  • Loading branch information
viduni94 committed Nov 5, 2024
1 parent ef63241 commit 4897fab
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export function getGeneratedTitle({
// - JustTextWithoutQuotes => Captures: JustTextWithoutQuotes
const formattedTitle = title.replace(/^"(.*)"$/g, '$1').replace(/^'(.*)'$/g, '$1');

// append timestamp to the title, if the conversation is generated by the rule connector
if (isPublic) {
const timestamp = asAbsoluteDateTime(Date.now());
return `${formattedTitle} - ${timestamp}`;
Expand Down

0 comments on commit 4897fab

Please sign in to comment.