Skip to content

Support for additional options (e.g., chat_template_kwargs)? #1491

Description

@cemulate

I tried to include, e.g.,

options:
  chat_template_kwargs:
    enable_thinking: false

in a template as a way of controlling thinking behavior for certain templates, only to be told that "Extra inputs are not permitted". chat_template_kwargs can be passed to a llama.cpp endpoint and works as expected from other front-ends such as OpenWebUI.

On one hand, I would expect this program to blindly pass whatever key-value pairs are passed as options to the api request (maybe with a flag?). But even if that's not desirable, it seems to make sense to support chat_template_kwargs to control various behaviors of models for a specific prompt or template (e.g., enable_thinking or reasoning_effort, etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions