Fix: generate if/else for conditional blocks in Code 2.0 + branch return validation (#5160)

This commit is contained in:
pedrohsdb 2026-03-19 13:33:25 -07:00 committed by GitHub
parent 640cdeb788
commit 975cdd8f80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 868 additions and 425 deletions

View file

@ -23,6 +23,7 @@ class LLMAPIHandler(Protocol):
raw_response: bool = False,
window_dimension: Resolution | None = None,
force_dict: bool = True,
system_prompt: str | None = None,
) -> Awaitable[dict[str, Any] | Any]: ...
@ -41,5 +42,6 @@ async def dummy_llm_api_handler(
raw_response: bool = False,
window_dimension: Resolution | None = None,
force_dict: bool = True,
system_prompt: str | None = None,
) -> dict[str, Any] | Any:
raise NotImplementedError("Your LLM provider is not configured. Please configure it in the .env file.")