Auto-generate: Improve long text generation (#76213)

Breaklines don't render for history text
transform/toast-delete
Ivan Ortega Alba 2 years ago committed by GitHub
parent ecbe191a30
commit 7d0c4c5aa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      public/app/features/dashboard/components/GenAI/GenAIPanelDescriptionButton.tsx
  2. 1
      public/app/features/dashboard/components/GenAI/GenerationHistoryCarousel.tsx

@ -17,6 +17,7 @@ const DESCRIPTION_GENERATION_STANDARD_PROMPT =
'You will be given the title and description of the dashboard the panel is in as well as the JSON for the panel.\n' +
'Your goal is to write a descriptive and concise panel description.\n' +
'The panel description is meant to explain the purpose of the panel, not just its attributes.\n' +
'Do not refer to the panel; simply describe its purpose.\n' +
'There should be no numbers in the description except for thresholds.\n' +
'The description should be, at most, 140 characters.';

@ -62,6 +62,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
display: 'flex',
flexBasis: '100%',
flexGrow: 3,
whiteSpace: 'pre-wrap',
marginTop: 20,
}),
});

Loading…
Cancel
Save