mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-24 11:52:45 +03:00
24 lines
582 B
Python
24 lines
582 B
Python
from typing import List, Optional, Tuple
|
|
from uuid import UUID
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class ChatMessage(BaseModel):
|
|
model: str = "gpt-3.5-turbo-16k"
|
|
question: str
|
|
# A list of tuples where each tuple is (speaker, text)
|
|
history: List[Tuple[str, str]]
|
|
temperature: float = 0.0
|
|
max_tokens: int = 256
|
|
use_summarization: bool = False
|
|
chat_id: Optional[UUID] = None
|
|
chat_name: Optional[str] = None
|
|
|
|
|
|
class ChatQuestion(BaseModel):
|
|
model: str = "gpt-3.5-turbo-0613"
|
|
question: str
|
|
temperature: float = 0.0
|
|
max_tokens: int = 256
|