(prov)
| 197 | )) |
| 198 | |
| 199 | def _rejected_key_file_error(prov): |
| 200 | return LLMClientError(LLMError( |
| 201 | message=( |
| 202 | f"The configured {prov} API key file is not within " |
| 203 | "your private user storage. Move the key file to " |
| 204 | "your private storage directory, or clear the API " |
| 205 | "Key File preference to use the system default." |
| 206 | ), |
| 207 | provider=prov, |
| 208 | )) |
| 209 | |
| 210 | if provider == 'anthropic': |
| 211 | from pgadmin.llm.providers.anthropic import AnthropicClient |
no test coverage detected