MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / get_api_key

Method get_api_key

codewiki/cli/config_manager.py:248–264  ·  view source on GitHub ↗

Get API key from keyring or fallback file. Returns: API key or None if not set

(self)

Source from the content-addressed store, hash-verified

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 (

Callers 5

is_configuredMethod · 0.95
config_showFunction · 0.95
config_validateFunction · 0.95
generate_commandFunction · 0.95
_legacy_generate_docsFunction · 0.80

Calls 1

Tested by

no test coverage detected