@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 = this.convertInputContent(typed.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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenmux/rosetta-ai",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "Universal translator between AI provider protocols",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",