NJIR/ njir.gen-2:1.5-logic

2.3M 1 week ago

Next-Gen Sovereign AI Ecosystem - 7 specialized models for Coding, Vision, Reasoning, Edge & RAG. 131K context, 11 Stop Tokens. Native with OpenClaw, VSCode, Cursor, LangChain & 12+ platforms. Forged by NJIRLAH.

vision embedding tools thinking
c5ad996bda6e · 556B
{{- if .System }}{{ .System }}{{ end }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1}}
{{- if eq .Role "user" }}<|User|>{{ .Content }}
{{- else if eq .Role "assistant" }}<|Assistant|>
{{- if and $.IsThinkSet (and $last .Thinking) -}}
<think>
{{ .Thinking }}
</think>
{{- end }}{{ .Content }}{{- if not $last }}<|end▁of▁sentence|>{{- end }}
{{- end }}
{{- if and $last (ne .Role "assistant") }}<|Assistant|>
{{- if and $.IsThinkSet (not $.Think) -}}
<think>
</think>
{{ end }}
{{- end -}}
{{- end }}