Models
Docs
Pricing
Sign in
Download
Models
Download
Docs
Pricing
Sign in
gleison
/
SQLAlchemyAgent
:latest
71
Downloads
Updated
1 year ago
AI agent specialized in generating and adapting SQLAlchemy code using Python. Supports ORM models, async queries, and integration with FastAPI and relational databases.
AI agent specialized in generating and adapting SQLAlchemy code using Python. Supports ORM models, async queries, and integration with FastAPI and relational databases.
Cancel
thinking
SQLAlchemyAgent:latest
...
/
template
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 }}