@contentgrowth/llm-service 0.6.94 → 0.6.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentgrowth/llm-service",
3
- "version": "0.6.94",
3
+ "version": "0.6.96",
4
4
  "description": "Unified LLM Service for Content Growth",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -8,6 +8,7 @@
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
9
  "test:live": "node test-live.js",
10
10
  "test:json": "node test-json-mode.js",
11
+ "test:jsonutil": "node test-extraction.js",
11
12
  "examples:json": "node examples-json-mode.js",
12
13
  "prepublishOnly": "echo '\n📦 Package contents:\n' && npm pack --dry-run && echo '\n⚠️ Review the files above before publishing!\n'"
13
14
  },
@@ -135,7 +135,7 @@ export class GeminiProvider extends BaseLLMProvider {
135
135
  };
136
136
 
137
137
  if (systemPrompt) {
138
- requestOptions.systemInstruction = systemPrompt;
138
+ requestOptions.config.systemInstruction = { parts: [{ text: systemPrompt }] };
139
139
  }
140
140
 
141
141
  if (tools && tools.length > 0) {
@@ -187,6 +187,7 @@ export class GeminiProvider extends BaseLLMProvider {
187
187
  );
188
188
  }
189
189
 
190
+ console.log('Gemini returns:', textContent);
190
191
  // Return with parsed JSON if applicable
191
192
  return {
192
193
  content: textContent,
@@ -366,7 +367,7 @@ export class GeminiProvider extends BaseLLMProvider {
366
367
  };
367
368
 
368
369
  if (systemPrompt) {
369
- requestOptions.systemInstruction = systemPrompt;
370
+ requestOptions.config.systemInstruction = { parts: [{ text: systemPrompt }] };
370
371
  }
371
372
 
372
373
  console.log('[GeminiProvider] imageGeneration request:', JSON.stringify(requestOptions, null, 2));