NAME

Langertha::Role::Models - Role for APIs with several models

VERSION

version 0.303

models

ArrayRef of available model name strings. Lazily populated by calling list_models if the engine supports it, otherwise contains only the currently selected model.

model

The model name to use for requests. Defaults to the engine's default_model. Engines that require this role must implement default_model.

models_cache_ttl

Time-to-live in seconds for the models list cache. Defaults to 3600 (one hour).

clear_models_cache

$engine->clear_models_cache;

Clears the internal models list cache, forcing a fresh fetch on the next access to models.

SEE ALSO

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/langertha/issues.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <torsten@raudssus.de> https://raudss.us/

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.