copilot-api-plus 1.0.28 → 1.0.30

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/main.js CHANGED
@@ -1312,10 +1312,7 @@ function convertMessages$1(messages) {
1312
1312
  * Build system instruction from content
1313
1313
  */
1314
1314
  function buildSystemInstruction(content) {
1315
- return {
1316
- role: "system",
1317
- parts: [{ text: typeof content === "string" ? content : content.map((c) => c.text || "").join("") }]
1318
- };
1315
+ return { parts: [{ text: typeof content === "string" ? content : content.map((c) => c.text || "").join("") }] };
1319
1316
  }
1320
1317
  /**
1321
1318
  * Build message parts from content
@@ -1878,10 +1875,7 @@ const ANTIGRAVITY_USER_AGENT = "antigravity/1.11.3 windows/amd64";
1878
1875
  function convertMessages(messages, system) {
1879
1876
  const contents = [];
1880
1877
  let systemInstruction;
1881
- if (system) systemInstruction = {
1882
- role: "system",
1883
- parts: [{ text: system }]
1884
- };
1878
+ if (system) systemInstruction = { parts: [{ text: system }] };
1885
1879
  for (const message of messages) {
1886
1880
  const role = message.role === "assistant" ? "model" : "user";
1887
1881
  const parts = buildParts(message.content);