Skip to content

Commit

Permalink
Add missing param in apply_chat_template
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdlrm committed Dec 10, 2024
1 parent 3b8c621 commit 6f23b04
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
ChunkChoice,
Completion,
CompletionChoice,
ChatCompletionTool,
CreateChatCompletionRequest,
CreateCompletionRequest,
Logprobs,
Expand Down Expand Up @@ -56,6 +57,7 @@ def apply_chat_template(
self,
messages: Iterable[ChatCompletionRequestMessage],
chat_template: Optional[str] = None,
tools: Optional[list[ChatCompletionTool]] = None,
) -> ChatPrompt:
"""
Given a list of chat completion messages, convert them to a prompt.
Expand Down

0 comments on commit 6f23b04

Please sign in to comment.