| chat_session_openai | R Documentation |
Convenience wrapper for chat_session with OpenAI provider.
chat_session_openai(model = "gpt-4o", system_prompt = NULL, ...)
model |
Character. Model name (default: "gpt-4o"). |
system_prompt |
Character or NULL. System prompt. |
... |
Additional parameters passed to chat_session(). |
A chat session list.
# Construct a session (no network call yet)
session <- chat_session_openai(system_prompt = "You are helpful.")
## Not run:
session$chat("Hello")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.