@flare-ai-sdk/server 1.0.1 → 1.0.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 +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1330,7 +1330,10 @@ var GoogleProvider = class extends BaseProvider {
|
|
|
1330
1330
|
try {
|
|
1331
1331
|
const chat = this.model.startChat({
|
|
1332
1332
|
history: this.formatGoogleMessages(conversationMessages.slice(0, -1)),
|
|
1333
|
-
systemInstruction: systemPrompt
|
|
1333
|
+
systemInstruction: systemPrompt ? {
|
|
1334
|
+
role: "system",
|
|
1335
|
+
parts: [{ text: systemPrompt }]
|
|
1336
|
+
} : void 0
|
|
1334
1337
|
});
|
|
1335
1338
|
const lastMessage = conversationMessages[conversationMessages.length - 1];
|
|
1336
1339
|
const result = yield chat.sendMessage(lastMessage.content);
|