Files
QodeAssist/sources/agents/partials/google_contents.jinja
2026-06-09 08:48:32 +02:00

7 lines
228 B
Django/Jinja

{% for msg in ctx.history %}
{
"role": {% if msg.role == "assistant" %}"model"{% else %}"user"{% endif %},
"parts": [ {% for b in msg.content_blocks %}{% include "partials/google_part.jinja" %}{% endfor %} ]
},
{% endfor %}