(description = '', label, content)
| 88 | } |
| 89 | |
| 90 | export function appendContentSection(description = '', label, content) { |
| 91 | if (!content) { |
| 92 | return description; |
| 93 | } |
| 94 | |
| 95 | const base = description?.trim() || ''; |
| 96 | const section = `**${label}**\n${content}`; |
| 97 | return base ? `${base}\n\n${section}`.slice(0, 4096) : section.slice(0, 4096); |
| 98 | } |
| 99 | |
| 100 | export function formatRatingStars(rating) { |
| 101 | const numeric = Number(rating); |