Expand description
Shared security helpers for AI client implementations. Shared security helpers for AI provider clients.
These helpers centralize precautionary checks that every AI client should perform before sending credentials over the wire.
Functions§
- warn_
on_ insecure_ http - Emit a warning if the parsed
urluses plaintext HTTP against a non-local host while an API key is configured, because the API key would be sent unencrypted. - warn_
on_ insecure_ http_ str - Convenience wrapper that parses
url_strand forwards towarn_on_insecure_http. Parse errors are silently ignored because the caller’s existing URL validation will have already rejected malformed URLs.