Skip to content

Commit

Permalink
phi_4 chat template support fix after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
brainlid committed Jan 13, 2025
1 parent 674a13f commit 3630129
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/utils/chat_templates.ex
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ defmodule LangChain.Utils.ChatTemplates do
Note: The `:zephyr` format supports specific system messages.
### `:phi_4`
The `:phi_4` template format is also supported.
## Template callback
It's possible to pass a callback as a template.
Expand All @@ -88,7 +93,7 @@ defmodule LangChain.Utils.ChatTemplates do
alias LangChain.Message

@type template_callback :: ([Message.t()], Keyword.t() -> String.t())
@type chat_format :: :inst | :im_start | :llama_2 | :llama_3 | :zephyr | template_callback()
@type chat_format :: :inst | :im_start | :llama_2 | :llama_3 | :phi_4 | :zephyr | template_callback()

# Option:
# - `add_generation_prompt`: boolean. Defaults to False.
Expand Down

0 comments on commit 3630129

Please sign in to comment.