mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-06-15 02:39:19 -04:00
refactor: Finalize agent template
This commit is contained in:
11
sources/agents/partials/openai_image_content.jinja
Normal file
11
sources/agents/partials/openai_image_content.jinja
Normal file
@@ -0,0 +1,11 @@
|
||||
[
|
||||
{ "type": "text", "text": {{ tojson(msg.content) }} }
|
||||
{% for img in msg.images %}
|
||||
,
|
||||
{% if img.is_url %}
|
||||
{ "type": "image_url", "image_url": { "url": {{ tojson(img.data) }} } }
|
||||
{% else %}
|
||||
{ "type": "image_url", "image_url": { "url": "data:{{ img.media_type }};base64,{{ img.data }}" } }
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
]
|
||||
Reference in New Issue
Block a user