View source: R/content_translation.R
| translate_message_content | R Documentation |
Part of the companion-package extension API (used by aisdk.shiny). Translates provider-neutral content blocks into the message payload shape expected by a given provider family.
translate_message_content(
content,
target = c("openai_chat", "openai_responses", "gemini", "anthropic")
)
content |
Provider-neutral content (a string or a list of content blocks). |
target |
Target provider format. |
The translated, provider-specific content.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.