Skip to content

feat: make get_api_key extensible via @extensible decorator#1306

Closed
Krashnicov wants to merge 1 commit intoagent0ai:developmentfrom
Deimos-AI:feat/models-get-api-key-extensible
Closed

feat: make get_api_key extensible via @extensible decorator#1306
Krashnicov wants to merge 1 commit intoagent0ai:developmentfrom
Deimos-AI:feat/models-get-api-key-extensible

Conversation

@Krashnicov
Copy link
Copy Markdown
Contributor

Summary

Applies the @extensible decorator from helpers.extension to get_api_key() in models.py.

This allows plugins to override or augment API key resolution at call-time without modifying core files.

Changes — models.py only

  • from helpers.extension import extensible added to imports
  • @extensible applied to get_api_key(service: str) -> str

Notes

  • No behaviour change if no plugins subscribe
  • Follows the established @extensible pattern already used elsewhere in the codebase
  • Minimal — 2 lines added, 0 removed

Applies the @extensible decorator from helpers.extension to get_api_key()
allowing plugins to override or augment API key resolution at call-time.

This is a minimal change — no behaviour change if no plugins subscribe.
@Krashnicov
Copy link
Copy Markdown
Contributor Author

Closing as duplicate of #1258.

@Krashnicov Krashnicov closed this Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant