Get API key from keyring or fallback file. Returns: API key or None if not set
(self)
| 246 | self._config.aws_region = aws_region |
| 247 | if api_version is not None: |
| 248 | self._config.api_version = api_version |
| 249 | if azure_deployment is not None: |
| 250 | self._config.azure_deployment = azure_deployment |
| 251 | if google_project is not None: |
| 252 | self._config.google_project = google_project |
| 253 | if google_location is not None: |
| 254 | self._config.google_location = google_location |
| 255 | if use_gitignore is not None: |
| 256 | self._config.use_gitignore = use_gitignore |
| 257 | if prompt_caching is not None: |
| 258 | self._config.prompt_caching = prompt_caching |
| 259 | |
| 260 | # Validate configuration whenever the minimum required fields are set. |
| 261 | # Caw providers only need main_model; API providers need base_url + |
| 262 | # cluster_model on top of that. The validate() method itself routes |
| 263 | # by provider, so we only gate on whether enough is set to validate. |
| 264 | |
| 265 | # The glm-4p5 default fallback does not exist on Google endpoints; a |
| 266 | # fallback that 404s only after the main model failed hides the real error. |
| 267 | if ( |
no test coverage detected