Spaces:
Running
Running
fix: Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -26,6 +26,12 @@ RUN python3 /tmp/patch_file_delivery.py && rm /tmp/patch_file_delivery.py
|
|
| 26 |
COPY patches/hermes-agent/agent/prompt_builder.py /app/hermes-agent/agent/prompt_builder.py
|
| 27 |
COPY patches/hermes-agent/tools/send_message_tool.py /app/hermes-agent/tools/send_message_tool.py
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
# Install Node.js 23
|
| 30 |
RUN ARCH=$(dpkg --print-architecture) \
|
| 31 |
&& if [ "$ARCH" = "amd64" ]; then NODE_ARCH="x64"; else NODE_ARCH="$ARCH"; fi \
|
|
|
|
| 26 |
COPY patches/hermes-agent/agent/prompt_builder.py /app/hermes-agent/agent/prompt_builder.py
|
| 27 |
COPY patches/hermes-agent/tools/send_message_tool.py /app/hermes-agent/tools/send_message_tool.py
|
| 28 |
|
| 29 |
+
# Patch: Auto-inject MEDIA: tags from write_file tool calls
|
| 30 |
+
# Ensures files created by write_file are delivered as native attachments
|
| 31 |
+
# even when the LLM forgets to include MEDIA: tags in its response
|
| 32 |
+
COPY scripts/patch_auto_media.py /tmp/patch_auto_media.py
|
| 33 |
+
RUN python3 /tmp/patch_auto_media.py && rm /tmp/patch_auto_media.py
|
| 34 |
+
|
| 35 |
# Install Node.js 23
|
| 36 |
RUN ARCH=$(dpkg --print-architecture) \
|
| 37 |
&& if [ "$ARCH" = "amd64" ]; then NODE_ARCH="x64"; else NODE_ARCH="$ARCH"; fi \
|