mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-18 19:43:26 +02:00
Chat UI
This commit is contained in:
@@ -9,9 +9,9 @@ class CreatePromptRequest(BaseModel):
|
||||
shared: bool
|
||||
system_prompt: str
|
||||
task_prompt: str
|
||||
include_citations: bool
|
||||
datetime_aware: bool
|
||||
persona_ids: list[int]
|
||||
include_citations: bool = False
|
||||
datetime_aware: bool = False
|
||||
persona_ids: list[int] | None = None
|
||||
|
||||
|
||||
class PromptSnapshot(BaseModel):
|
||||
|
@@ -59,6 +59,7 @@ def get_user_chat_sessions(
|
||||
ChatSessionDetails(
|
||||
id=chat.id,
|
||||
name=chat.description,
|
||||
persona_id=chat.persona_id,
|
||||
time_created=chat.time_created.isoformat(),
|
||||
)
|
||||
for chat in chat_sessions
|
||||
|
@@ -96,6 +96,7 @@ class RenameChatSessionResponse(BaseModel):
|
||||
class ChatSessionDetails(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
persona_id: int
|
||||
time_created: str
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user