Skip to content

Commit

Permalink
feat: align the chat & completion response interface (#43)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingyang@tensorchord.ai>
  • Loading branch information
kemingy authored Jun 21, 2023
1 parent 9e19db6 commit f78afce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llmspec/llmspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ class ChatResponse(LMResponse):
def from_message(
cls,
message: str,
role: Role,
model: str,
finish_reason: str,
prompt_token: int,
completion_token: int,
role: Role = Role.ASSISTANT,
):
return cls(
id=str(uuid.uuid4()),
Expand Down

0 comments on commit f78afce

Please sign in to comment.