allow extract result to be non dict (#4069)
This commit is contained in:
@@ -101,7 +101,8 @@ class LLMAPIHandler(Protocol):
|
||||
use_message_history: bool = False,
|
||||
raw_response: bool = False,
|
||||
window_dimension: Resolution | None = None,
|
||||
) -> Awaitable[dict[str, Any]]: ...
|
||||
force_dict: bool = True,
|
||||
) -> Awaitable[dict[str, Any] | Any]: ...
|
||||
|
||||
|
||||
async def dummy_llm_api_handler(
|
||||
@@ -118,5 +119,6 @@ async def dummy_llm_api_handler(
|
||||
use_message_history: bool = False,
|
||||
raw_response: bool = False,
|
||||
window_dimension: Resolution | None = None,
|
||||
) -> dict[str, Any]:
|
||||
force_dict: bool = True,
|
||||
) -> dict[str, Any] | Any:
|
||||
raise NotImplementedError("Your LLM provider is not configured. Please configure it in the .env file.")
|
||||
|
||||
Reference in New Issue
Block a user