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

Method validate

codewiki/cli/models/config.py:141–158  ·  view source on GitHub ↗

Validate all configuration fields. Subscription-mode providers (claude-code, codex) authenticate via the underlying CLI's OAuth and do not require a base URL or fallback model. Raises: ConfigurationError: If validation fails

(self)

Source from the content-addressed store, hash-verified

139 main_model: str
140 cluster_model: str
141 fallback_model: str = "glm-4p5"
142 default_output: str = "docs"
143 provider: str = "openai-compatible"
144 aws_region: str = "us-east-1"
145 api_version: str = "2024-12-01-preview"
146 azure_deployment: str = ""
147 max_tokens: int = 32768
148 max_token_per_module: int = 36369
149 max_token_per_leaf_module: int = 16000
150 max_depth: int = 2
151 use_gitignore: bool = True
152 prompt_caching: bool = True
153 agent_instructions: AgentInstructions = field(default_factory=AgentInstructions)
154
155 def validate(self):
156 """
157 Validate all configuration fields.
158
159 Subscription-mode providers (claude-code, codex) authenticate via the
160 underlying CLI's OAuth and do not require a base URL or fallback model.
161

Callers 1

saveMethod · 0.80

Calls 3

is_caw_providerFunction · 0.90
validate_model_nameFunction · 0.90
validate_urlFunction · 0.90

Tested by

no test coverage detected