Skip to content

Support Kimi-K2 #10

@hksdpc255

Description

@hksdpc255

Kimi-K2’s official template uses two unsupported pattern:

  1. {{ tools | tojson(separators=(',', ':')) }} non-indented JSON
  2. {%- set formatted_id = tool_call['id'] -%} equivalent to building "functions." + tool_call['function']['name'] + ":" + loop.index

Should we add support for these?

See: ikawrakow/ik_llama.cpp#958 (comment)

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