format_message_md {shiny.ollama} | R Documentation |
Format a message as markdown
Description
This helper function formats a message with a specified role (User, Assistant, or System) into a markdown-styled string.
Usage
format_message_md(role, content)
Arguments
role |
A character string specifying the role (e.g., "User", "Assistant", "System"). |
content |
A character string containing the message content. |
Value
A character string formatted as markdown.
[Package shiny.ollama version 0.1.1 Index]