feat: Mission Control dashboard for project management
This commit is contained in:
@@ -93,11 +93,12 @@ export const generateSiteMenteText = async (
|
||||
): Promise<string> => {
|
||||
try {
|
||||
const client = getClient();
|
||||
const response = await client.models.generateContent({
|
||||
const params = {
|
||||
model: TEXT_MODEL,
|
||||
contents: buildContents(messages),
|
||||
systemInstruction: buildSystemInstruction(messages),
|
||||
});
|
||||
} as any;
|
||||
params.systemInstruction = buildSystemInstruction(messages);
|
||||
const response = await client.models.generateContent(params);
|
||||
return extractText(response);
|
||||
} catch (error) {
|
||||
console.error("[SiteMente][Gemini] Text generation failed", error);
|
||||
|
||||
Reference in New Issue
Block a user