Skip to content

Commit c789ca8

Browse files
Apply suggestion from @greptile-apps[bot]
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent bb077f5 commit c789ca8

File tree

1 file changed

+1
-1
lines changed
  • packages/data-designer-engine/src/data_designer/engine/models

1 file changed

+1
-1
lines changed

packages/data-designer-engine/src/data_designer/engine/models/facade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ async def agenerate(
484484

485485
continue
486486

487-
response = completion_response.choices[0].message.content or ""
487+
response = (completion_response.choices[0].message.content or "").strip()
488488
reasoning_trace = getattr(completion_response.choices[0].message, "reasoning_content", None)
489489
messages.append(ChatMessage.as_assistant(content=response, reasoning_content=reasoning_trace or None))
490490
curr_num_correction_steps += 1

0 commit comments

Comments
 (0)