@kenkaiiii/gg-ai 5.60.1 → 5.60.3

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.cjs CHANGED
@@ -1176,13 +1176,11 @@ function toOpenAIMessages(messages, options) {
1176
1176
  const parts = typeof msg.content === "string" ? msg.content : void 0;
1177
1177
  const toolCalls = typeof msg.content !== "string" ? msg.content.filter(
1178
1178
  (p) => p.type === "tool_call"
1179
- ).map(
1180
- (tc) => ({
1181
- id: remapToolCallId(tc.id, idMap),
1182
- type: "function",
1183
- function: { name: tc.name, arguments: JSON.stringify(tc.args) }
1184
- })
1185
- ) : void 0;
1179
+ ).map((tc) => ({
1180
+ id: remapToolCallId(tc.id, idMap),
1181
+ type: "function",
1182
+ function: { name: tc.name, arguments: JSON.stringify(tc.args) }
1183
+ })) : void 0;
1186
1184
  const textParts = typeof msg.content !== "string" ? msg.content.filter((p) => p.type === "text").map((p) => p.text).join("") : void 0;
1187
1185
  const thinkingParts = typeof msg.content !== "string" ? msg.content.filter((p) => p.type === "thinking").map((p) => p.text).join("") : void 0;
1188
1186
  const contentValue = parts || textParts || null;