mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-28 01:45:07 +01:00
Ignore type checks from mypy in subindexed fields
This commit is contained in:
parent
c2d46de8bc
commit
5f97afbfac
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ def content_config_page(request: Request, content_type: str):
|
||||||
return templates.TemplateResponse("config.html", context={"request": request})
|
return templates.TemplateResponse("config.html", context={"request": request})
|
||||||
|
|
||||||
default_copy = constants.default_config.copy()
|
default_copy = constants.default_config.copy()
|
||||||
default_content_type = default_copy["content-type"][content_type]
|
default_content_type = default_copy["content-type"][content_type] # type: ignore
|
||||||
|
|
||||||
default_config = TextContentConfig(
|
default_config = TextContentConfig(
|
||||||
compressed_jsonl=default_content_type["compressed-jsonl"],
|
compressed_jsonl=default_content_type["compressed-jsonl"],
|
||||||
|
@ -69,7 +69,7 @@ def content_config_page(request: Request, content_type: str):
|
||||||
@web_client.get("/config/processor/conversation", response_class=HTMLResponse)
|
@web_client.get("/config/processor/conversation", response_class=HTMLResponse)
|
||||||
def conversation_processor_config_page(request: Request):
|
def conversation_processor_config_page(request: Request):
|
||||||
default_copy = constants.default_config.copy()
|
default_copy = constants.default_config.copy()
|
||||||
default_processor_config = default_copy["processor"]["conversation"]
|
default_processor_config = default_copy["processor"]["conversation"] # type: ignore
|
||||||
default_processor_config = ConversationProcessorConfig(
|
default_processor_config = ConversationProcessorConfig(
|
||||||
openai_api_key="",
|
openai_api_key="",
|
||||||
model=default_processor_config["model"],
|
model=default_processor_config["model"],
|
||||||
|
|
Loading…
Reference in a new issue