myavana-bot-test-core 2.1.2 → 2.1.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/package.json
CHANGED
package/src/conversation.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// conversation.js
|
|
2
2
|
const { pgClient, redisClient } = require('./database');
|
|
3
3
|
const ai = require('./ai');
|
|
4
|
-
|
|
4
|
+
const { googleAI } = require('@genkit-ai/google-genai');
|
|
5
5
|
|
|
6
6
|
const saveConversationSummary = async (conversationId, userId, summary) => {
|
|
7
7
|
const query = `
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// postResponseProcessing.js
|
|
2
2
|
const ai = require("./ai");
|
|
3
|
-
|
|
3
|
+
const { googleAI } = require('@genkit-ai/google-genai');
|
|
4
4
|
const DatabaseSessionStore = require("./session");
|
|
5
5
|
const { pgClient, redisClient } = require('./database');
|
|
6
6
|
const {generateAndSaveSummary, saveConversationSummary, saveConversation} = require("./conversation");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// unifiedChatHandler.js - Fixed version with proper model prioritization
|
|
2
2
|
const { genkit, z } = require('genkit');
|
|
3
|
-
|
|
3
|
+
const { googleAI } = require('@genkit-ai/google-genai');
|
|
4
4
|
|
|
5
5
|
class UnifiedChatHandler {
|
|
6
6
|
constructor(config) {
|