(prov)
| 186 | provider = provider.lower() |
| 187 | |
| 188 | def _rejected_url_error(prov): |
| 189 | return LLMClientError(LLMError( |
| 190 | message=( |
| 191 | f"The configured {prov} API URL is not in the " |
| 192 | "allowed list (ALLOWED_LLM_API_URLS). Add it to " |
| 193 | "config_local.py, or clear the API URL preference " |
| 194 | "to use the system default." |
| 195 | ), |
| 196 | provider=prov, |
| 197 | )) |
| 198 | |
| 199 | def _rejected_key_file_error(prov): |
| 200 | return LLMClientError(LLMError( |
no test coverage detected