Skip to content

CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.

fix(openai): send system prompt as plain string, not list-of-blocks

xf gongcd452f629f78
diff --git a/cubepi/providers/openai.py b/cubepi/providers/openai.py
index 5ac8237..9480124 100644
--- a/cubepi/providers/openai.py
+++ b/cubepi/providers/openai.py
@@ -68,7 +68,7 @@ class OpenAIProvider:
api_messages.append(
{
"role": "system",
- "content": [{"type": "text", "text": system_prompt}],
+ "content": system_prompt,
}
)
api_messages.extend(self._convert_message(m) for m in messages)