Skip to content

we have a dedicated view for chat_template now #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 0_app/4_api/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ Models with Native tool use support will have a hammer badge in the app, and gen

1. The model has a chat template that supports tool use (usually means the model has been trained for tool use)
- This is what will be used to format the `tools` array into the system prompt and tell them model how to format tool calls
- Example: [Qwen2.5-Instruct chat template](https://huggingface.co/mlx-community/Qwen2.5-7B-Instruct-4bit/blob/c26a38f6a37d0a51b4e9a1eb3026530fa35d9fed/tokenizer_config.json#L197)
- Example: [Qwen2.5-Instruct chat template](https://huggingface.co/mlx-community/Qwen2.5-7B-Instruct-4bit?chat_template=default)
2. LM Studio supports that model's tool use format
- Required for LM Studio to properly input the chat history into the chat template, and parse the tool calls the model outputs into the `chat.completion` object

Expand Down Expand Up @@ -722,6 +722,7 @@ def open_safe_url(url: str) -> dict:
# List of allowed domains (expand as needed)
SAFE_DOMAINS = {
"lmstudio.ai",
"huggingface.co",
"github.com",
"google.com",
"wikipedia.org",
Expand Down