MCPcopy Create free account
hub / github.com/RightNow-AI/rightnow-cli / clear_placeholder_api_key

Method clear_placeholder_api_key

rightnow_cli/cache.py:108–114  ·  view source on GitHub ↗

Remove placeholder API key from config if it exists.

(self)

Source from the content-addressed store, hash-verified

106 self.save_config(config)
107
108 def clear_placeholder_api_key(self):
109 """Remove placeholder API key from config if it exists."""
110 config = self.get_config()
111 api_key = config.get('openrouter_api_key')
112 if api_key == "sk-temp-placeholder":
113 del config['openrouter_api_key']
114 self.save_config(config)
115
116 def _generate_kernel_id(self, model_name: str, operation: str, code: str) -> str:
117 """Generate unique ID for a kernel."""

Callers 1

__init__Method · 0.80

Calls 3

get_configMethod · 0.95
save_configMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected