Skip to content

Commit

Permalink
Fix ChatCompletionRequest.messages type
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywonchung committed Feb 28, 2024
1 parent 312a904 commit be3ee45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/entrypoints/openai/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class UsageInfo(BaseModel):

class ChatCompletionRequest(BaseModel):
model: str
messages: Union[str, List[Dict[str, str]]]
messages: List[Dict[str, str]]
temperature: Optional[float] = 0.7
top_p: Optional[float] = 1.0
n: Optional[int] = 1
Expand Down

0 comments on commit be3ee45

Please sign in to comment.