@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.mjs
CHANGED
|
@@ -1254,7 +1254,10 @@ var GoogleProvider = class extends BaseProvider {
|
|
|
1254
1254
|
try {
|
|
1255
1255
|
const chat = this.model.startChat({
|
|
1256
1256
|
history: this.formatGoogleMessages(conversationMessages.slice(0, -1)),
|
|
1257
|
-
systemInstruction: systemPrompt
|
|
1257
|
+
systemInstruction: systemPrompt ? {
|
|
1258
|
+
role: "system",
|
|
1259
|
+
parts: [{ text: systemPrompt }]
|
|
1260
|
+
} : void 0
|
|
1258
1261
|
});
|
|
1259
1262
|
const lastMessage = conversationMessages[conversationMessages.length - 1];
|
|
1260
1263
|
const result = yield chat.sendMessage(lastMessage.content);
|