From 50583b31376e0377c1a20afda2d96e8956d90db6 Mon Sep 17 00:00:00 2001 From: Sumanth Mysore Sathyanarayana Date: Wed, 2 Sep 2026 18:25:40 -0700 Subject: [PATCH] converting to base64 to handle evals of long templates with html as Akamai throws 403 otherwise. --- scripts/template_content_eval.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/template_content_eval.py b/scripts/template_content_eval.py index b7ebf33..254c730 100644 --- a/scripts/template_content_eval.py +++ b/scripts/template_content_eval.py @@ -40,6 +40,7 @@ from __future__ import annotations import argparse +import base64 import httpx import json import logging @@ -376,7 +377,9 @@ def judge(self, spec: TemplateSpec) -> dict[str, JudgeScore]: resp = httpx.post( f"{self._eval_service_url}/fabric/v4/eval/template-content", json={ - "templateMarkdown": spec.raw_markdown, + "templateMarkdownBase64": base64.b64encode( + spec.raw_markdown.encode() + ).decode(), "templatePath": spec.source_path, }, headers={