MCPcopy Index your code
hub / github.com/FSoft-AI4Code/CodeWiki / is_complete

Method is_complete

codewiki/cli/models/config.py:213–228  ·  view source on GitHub ↗

Check if all required fields are set. Subscription-mode providers (claude-code, codex) only require ``main_model``; ``base_url``, ``cluster_model`` and ``fallback_model`` are unused.

(self)

Source from the content-addressed store, hash-verified

211 )
212
213 def is_complete(self) -> bool:
214 """Check if all required fields are set.
215
216 Subscription-mode providers (claude-code, codex) only require
217 ``main_model``; ``base_url``, ``cluster_model`` and ``fallback_model``
218 are unused.
219 """
220 from codewiki.src.be.backend import is_caw_provider
221 if is_caw_provider(self.provider):
222 return bool(self.main_model)
223 return bool(
224 self.base_url and
225 self.main_model and
226 self.cluster_model and
227 self.fallback_model
228 )
229
230 def to_backend_config(self, repo_path: str, output_dir: str, api_key: str, runtime_instructions: AgentInstructions = None):
231 """

Callers 1

is_configuredMethod · 0.80

Calls 1

is_caw_providerFunction · 0.90

Tested by

no test coverage detected