Skip to content

Commit

Permalink
fix: chat schema
Browse files Browse the repository at this point in the history
  • Loading branch information
leoguillaumegouv committed Oct 25, 2024
1 parent b6d2b81 commit 2ebe5ea
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/schemas/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
ChatCompletion,
ChatCompletionChunk,
ChatCompletionMessageParam,
ChatCompletionToolChoiceOptionParam,
ChatCompletionToolParam,
)
from pydantic import BaseModel, Field, model_validator

Expand All @@ -28,8 +26,6 @@ class ChatCompletionRequest(BaseModel):
user: Optional[str] = None
seed: Optional[int] = None
stop: Union[Optional[str], List[str]] = Field(default_factory=list)
tool_choice: Optional[Union[Literal["none"], ChatCompletionToolChoiceOptionParam]] = "none"
tools: List[ChatCompletionToolParam] = None
user: Optional[str] = None
best_of: Optional[int] = None
top_k: int = -1
Expand Down

0 comments on commit 2ebe5ea

Please sign in to comment.