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

Function mask_api_key

codewiki/cli/utils/validation.py:232–250  ·  view source on GitHub ↗

Mask API key for display, showing only first and last few characters. Args: api_key: API key to mask visible_chars: Number of visible characters at start and end Returns: Masked API key (e.g., "sk-1234...5678")

(api_key: str, visible_chars: int = 4)

Source from the content-addressed store, hash-verified

230
231
232def is_top_tier_model(model: str) -> bool:
233 """
234 Check if a model is considered top-tier for clustering.
235
236 Args:
237 model: Model name
238
239 Returns:
240 True if top-tier, False otherwise
241 """
242 top_tier_models = [
243 "claude-opus",
244 "claude-sonnet",
245 "gpt-4",
246 "gpt-5",
247 "gemini-2.5",
248 "gemini-3",
249 ]
250
251 model_lower = model.lower()
252 return any(tier in model_lower for tier in top_tier_models)
253

Callers 1

config_showFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected