mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-18 10:37:11 +00:00
Fix typing of generated_fiels parameters
This commit is contained in:
parent
d91935c880
commit
6f408948d3
4 changed files with 8 additions and 8 deletions
|
@ -24,7 +24,7 @@ from khoj.utils.helpers import (
|
|||
is_none_or_empty,
|
||||
truncate_code_context,
|
||||
)
|
||||
from khoj.utils.rawconfig import LocationData
|
||||
from khoj.utils.rawconfig import FileAttachment, LocationData
|
||||
from khoj.utils.yaml import yaml_dump
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -159,7 +159,7 @@ def converse_anthropic(
|
|||
vision_available: bool = False,
|
||||
query_files: str = None,
|
||||
generated_images: Optional[list[str]] = None,
|
||||
generated_files: List[str] = None,
|
||||
generated_files: List[FileAttachment] = None,
|
||||
generated_excalidraw_diagram: Optional[str] = None,
|
||||
additional_context: Optional[str] = None,
|
||||
tracer: dict = {},
|
||||
|
|
|
@ -24,7 +24,7 @@ from khoj.utils.helpers import (
|
|||
is_none_or_empty,
|
||||
truncate_code_context,
|
||||
)
|
||||
from khoj.utils.rawconfig import LocationData
|
||||
from khoj.utils.rawconfig import FileAttachment, LocationData
|
||||
from khoj.utils.yaml import yaml_dump
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -169,7 +169,7 @@ def converse_gemini(
|
|||
vision_available: bool = False,
|
||||
query_files: str = None,
|
||||
generated_images: Optional[list[str]] = None,
|
||||
generated_files: List[str] = None,
|
||||
generated_files: List[FileAttachment] = None,
|
||||
generated_excalidraw_diagram: Optional[str] = None,
|
||||
additional_context: List[str] = None,
|
||||
tracer={},
|
||||
|
|
|
@ -26,7 +26,7 @@ from khoj.utils.helpers import (
|
|||
is_promptrace_enabled,
|
||||
truncate_code_context,
|
||||
)
|
||||
from khoj.utils.rawconfig import LocationData
|
||||
from khoj.utils.rawconfig import FileAttachment, LocationData
|
||||
from khoj.utils.yaml import yaml_dump
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -162,7 +162,7 @@ def converse_offline(
|
|||
user_name: str = None,
|
||||
agent: Agent = None,
|
||||
query_files: str = None,
|
||||
generated_files: List[str] = None,
|
||||
generated_files: List[FileAttachment] = None,
|
||||
additional_context: List[str] = None,
|
||||
tracer: dict = {},
|
||||
) -> Union[ThreadedGenerator, Iterator[str]]:
|
||||
|
|
|
@ -22,7 +22,7 @@ from khoj.utils.helpers import (
|
|||
is_none_or_empty,
|
||||
truncate_code_context,
|
||||
)
|
||||
from khoj.utils.rawconfig import LocationData
|
||||
from khoj.utils.rawconfig import FileAttachment, LocationData
|
||||
from khoj.utils.yaml import yaml_dump
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -158,7 +158,7 @@ def converse(
|
|||
vision_available: bool = False,
|
||||
query_files: str = None,
|
||||
generated_images: Optional[list[str]] = None,
|
||||
generated_files: List[str] = None,
|
||||
generated_files: List[FileAttachment] = None,
|
||||
generated_excalidraw_diagram: Optional[str] = None,
|
||||
additional_context: List[str] = None,
|
||||
tracer: dict = {},
|
||||
|
|
Loading…
Reference in a new issue