model_defaults#
- rapidtools.models.model_defaults(model_id: str) dict[str, Any][source]#
Return the per-model default settings that apply to
model_id.Prefix entries are merged from shortest to longest and an exact entry is applied last, so the most specific value of each setting wins.
- Parameters:
model_id – Model ID as passed to a wrapper, e.g.
'gemini-4-neon'.- Returns:
dict[str, Any] – Setting name to default value; empty when the model has no defaults of its own and the wrapper’s general default applies.
Example
>>> model_defaults('gemini-4-neon') {'max_tokens': 32768} >>> model_defaults('gemini-3.8-flash') {}