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

Function validate_model_name

codewiki/cli/utils/validation.py:82–98  ·  view source on GitHub ↗

Validate model name format. Args: model: Model name to validate Returns: Validated model name Raises: ConfigurationError: If model name is invalid

(model: str)

Source from the content-addressed store, hash-verified

80
81 Args:
82 model: Model name to validate
83
84 Returns:
85 Validated model name
86
87 Raises:
88 ConfigurationError: If model name is invalid
89 """
90 if not model or not model.strip():
91 raise ConfigurationError("Model name cannot be empty")
92
93 return model.strip()
94
95
96def validate_output_directory(path: str) -> Path:
97 """
98 Validate output directory path.
99
100 Args:
101 path: Directory path to validate

Callers 2

config_setFunction · 0.90
validateMethod · 0.90

Calls 1

ConfigurationErrorClass · 0.90

Tested by

no test coverage detected