Skip to main content

NO_API_KEY_HELP

Constant NO_API_KEY_HELP 

Source
pub const NO_API_KEY_HELP: &str = "\
no System One API key is configured.

Pick whichever fits:

  1. Set the TYPESAFE_API_KEY environment variable (recommended: the key
     never sits in a file that can be committed).

  2. Or put it in ~/.grr/config.toml:

       [systemone]
       api-key = \"...\"

  3. Or point [systemone] endpoint/model at any provider speaking the
     same System One contract (its own key rules then apply).";
Expand description

Explain how to supply a System One API key, for when none could be resolved. Written for someone who has never used TypeSafe: name the env route first (the key cannot be committed either way), then the config-file route, then the provider-agnostic escape hatch.