Skip to contents

A two-field convenience wrapper over gr_model_info().

Usage

gr_model_limits(model = NULL)

Arguments

model

Model id.

Value

A list with exactly two elements: context_window and output_tokens. (Note the second name differs from gr_model_info()'s max_output.)

Examples

gr_model_limits("gpt-4o")
#> $context_window
#> [1] 128000
#> 
#> $output_tokens
#> [1] 16384
#>