Skip to content

Commit cf0ab9d

Browse files
committed
fix
1 parent a1a2046 commit cf0ab9d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/streaming_compliance.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ jobs:
7676
env:
7777
FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }}
7878
FIREWORKS_ACCOUNT_ID: ${{ vars.FIREWORKS_ACCOUNT_ID }}
79-
DISABLE_EP_SQLITE_LOG: "1"
8079
run: |
8180
. .venv/bin/activate
8281
mkdir -p artifacts

eval_protocol/benchmarks/test_glm_streaming_compliance.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,4 @@ def test_glm_streaming_tool_call(row: EvaluationRow) -> EvaluationRow:
336336
),
337337
metrics=metrics,
338338
)
339-
try:
340-
row.model_dump(exclude_none=True, mode="json")
341-
except Exception as exc: # pragma: no cover - debug helper
342-
print("DEBUG model_dump failure", exc, row.messages)
343-
344339
return row

eval_protocol/pytest/default_single_turn_rollout_process.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import asyncio
2+
import json
23
import logging
34
import os
45
import time
@@ -103,6 +104,11 @@ async def process_row(row: EvaluationRow) -> EvaluationRow:
103104
reasoning_content = getattr(assistant_message, "reasoning_content", None)
104105
if reasoning_content is None:
105106
reasoning_content = getattr(assistant_message, "reasoning", None)
107+
if reasoning_content is not None and not isinstance(reasoning_content, str):
108+
try:
109+
reasoning_content = json.dumps(reasoning_content)
110+
except Exception:
111+
reasoning_content = str(reasoning_content)
106112
tool_calls = assistant_message.tool_calls if assistant_message.tool_calls else None
107113

108114
converted_tool_calls = None

0 commit comments

Comments
 (0)