Skip to contents

This function creates a system prompt for an LLM that includes the contents of the news for the latest major version of ggplot2. This is useful for creating ellmer::Chat objects that are aware of recent changes in the package. However, doing this will incur extra costs from the LLM provider (if being billed per-token).

Usage

ggplot2_news_prompt()

Value

an ellmer_prompt object with the system prompt suitable for use creating an ellmer::Chat object.