Files
onyx/backend/danswer/server/danswer_api/models.py
T
josvdwandhagen-danswer 50c17438d5 Litellm bump (#2195)
* ran bump-pydantic

* replace root_validator with model_validator

* mostly working. some alternate assistant error. changed root_validator and typing_extensions

* working generation chat. changed type

* replacing .dict with .model_dump

* argument needed to bring model_dump up to parity with dict()

* fix a fewremaining issues -- working with llama and gpt

* updating requirements file

* more requirement updates

* more requirement updates

* fix to make search work

* return type fix:

* half way tpyes change

* fixes for mypy and pydantic:

* endpoint fix

* fix pydantic protected namespaces

* it works!

* removed unecessary None initializations

* better logging

* changed default values to empty lists

* mypy fixes

* fixed array defaulting

---------

Co-authored-by: hagen-danswer <hagen@danswer.ai>
2024-08-28 00:00:27 +00:00

20 lines
370 B
Python

from pydantic import BaseModel
from danswer.connectors.models import DocumentBase
class IngestionDocument(BaseModel):
document: DocumentBase
cc_pair_id: int | None = None
class IngestionResult(BaseModel):
document_id: str
already_existed: bool
class DocMinimalInfo(BaseModel):
document_id: str
semantic_id: str
link: str | None = None