mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Avoid null ref issue when setting model state for web UI. Closes #410
This commit is contained in:
parent
0baed742e4
commit
78012b8111
1 changed files with 3 additions and 1 deletions
|
@ -48,6 +48,8 @@ if not state.demo:
|
|||
"github": False,
|
||||
"notion": False,
|
||||
"enable_offline_model": False,
|
||||
"conversation_openai": False,
|
||||
"conversation_gpt4all": False,
|
||||
}
|
||||
|
||||
if state.content_index:
|
||||
|
@ -62,7 +64,7 @@ if not state.demo:
|
|||
}
|
||||
)
|
||||
|
||||
if state.processor_config:
|
||||
if state.processor_config and state.processor_config.conversation:
|
||||
successfully_configured.update(
|
||||
{
|
||||
"conversation_openai": state.processor_config.conversation.openai_model is not None,
|
||||
|
|
Loading…
Add table
Reference in a new issue