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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user