mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Make query field in context optional
Query field isn't set for all context. The current change was preventing save to conversation errors when query unset in context.
This commit is contained in:
@@ -23,7 +23,7 @@ logger = logging.getLogger(__name__)
|
||||
class Context(PydanticBaseModel):
|
||||
compiled: str
|
||||
file: str
|
||||
query: str
|
||||
query: Optional[str] = None
|
||||
|
||||
|
||||
class CodeContextFile(PydanticBaseModel):
|
||||
|
||||
Reference in New Issue
Block a user