@zenmux/rosetta-ai 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -832,7 +832,9 @@ class ResponsesToChatCompletionConverter {
|
|
|
832
832
|
if (typed.type === "message") {
|
|
833
833
|
flushToolCalls();
|
|
834
834
|
if (typed.role === "user" || typed.role === "system" || typed.role === "developer") {
|
|
835
|
-
const content =
|
|
835
|
+
const content = typeof typed.content === "string"
|
|
836
|
+
? typed.content
|
|
837
|
+
: this.convertInputContent(typed.content);
|
|
836
838
|
messages.push({
|
|
837
839
|
role: typed.role,
|
|
838
840
|
content,
|