fix: Automatically added the prompt after the app is initialised with recipe instructions (#2631)

Co-authored-by: Michael Neale <michael.neale@gmail.com>
This commit is contained in:
Lifei Zhou
2025-05-23 13:29:20 +10:00
committed by GitHub
parent df2cb78228
commit 3d808d99ef
3 changed files with 18 additions and 8 deletions
-2
View File
@@ -140,7 +140,6 @@ export const initializeSystem = async (
// Get recipeConfig directly here
const recipeConfig = window.appConfig?.get?.('recipeConfig');
const botPrompt = recipeConfig?.instructions;
// Extend the system prompt with desktop-specific information
const response = await fetch(getApiUrl('/agent/prompt'), {
method: 'POST',
@@ -154,7 +153,6 @@ export const initializeSystem = async (
: desktopPrompt,
}),
});
if (!response.ok) {
console.warn(`Failed to extend system prompt: ${response.statusText}`);
} else {