Skip to content

Commit

Permalink
Rebase main
Browse files Browse the repository at this point in the history
  • Loading branch information
thinhx committed Aug 22, 2024
1 parent 767f29c commit b7b9893
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/utils/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ def num_tokens_from_string(string: str) -> int:
# ***************************************************


class ContextOutput(BaseModel):
topics: List[str] = Field(default=[], description="List of topics.")


class RequiresContext(BaseModel):
value: bool = Field(description="Based on the conversation, this tells if context is needed to respond")

Expand Down

0 comments on commit b7b9893

Please sign in to comment.