@kenkaiiii/gg-ai 5.60.1 → 5.60.2

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.
package/dist/index.js CHANGED
@@ -1109,13 +1109,11 @@ function toOpenAIMessages(messages, options) {
1109
1109
  const parts = typeof msg.content === "string" ? msg.content : void 0;
1110
1110
  const toolCalls = typeof msg.content !== "string" ? msg.content.filter(
1111
1111
  (p) => p.type === "tool_call"
1112
- ).map(
1113
- (tc) => ({
1114
- id: remapToolCallId(tc.id, idMap),
1115
- type: "function",
1116
- function: { name: tc.name, arguments: JSON.stringify(tc.args) }
1117
- })
1118
- ) : void 0;
1112
+ ).map((tc) => ({
1113
+ id: remapToolCallId(tc.id, idMap),
1114
+ type: "function",
1115
+ function: { name: tc.name, arguments: JSON.stringify(tc.args) }
1116
+ })) : void 0;
1119
1117
  const textParts = typeof msg.content !== "string" ? msg.content.filter((p) => p.type === "text").map((p) => p.text).join("") : void 0;
1120
1118
  const thinkingParts = typeof msg.content !== "string" ? msg.content.filter((p) => p.type === "thinking").map((p) => p.text).join("") : void 0;
1121
1119
  const contentValue = parts || textParts || null;