View source: R/cli_integration.R
| goose_configure | R Documentation |
Set up Goose CLI configuration. Note: If Goose CLI is already configured (e.g., for Block employees), this function is not needed. The package will use the existing CLI configuration automatically.
goose_configure(
provider = NULL,
model = NULL,
api_key = NULL,
save_to_renviron = FALSE,
check_cli_first = TRUE
)
provider |
Character string specifying the AI provider (e.g., "openai", "anthropic") |
model |
Character string specifying the model (e.g., "gpt-4", "claude-3") |
api_key |
Character string with the API key (stored securely) |
save_to_renviron |
Logical, whether to save to .Renviron file |
check_cli_first |
Logical, check if CLI already works before configuring (default TRUE) |
Invisible TRUE if successful
## Not run:
# For Block employees with configured CLI, just check:
goose_test_cli()
# For external users who need API keys:
goose_configure(provider = "openai", model = "gpt-4", api_key = "your-key")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.