()
| 95 | }, []); |
| 96 | |
| 97 | const loadSystemPrompt = async () => { |
| 98 | try { |
| 99 | setLoadingPrompt(true); |
| 100 | const res = await api.get('/prompts/global'); |
| 101 | setSystemPrompt(res.data.content); |
| 102 | } catch (error) { |
| 103 | console.error("Error loading prompt:", error); |
| 104 | } finally { |
| 105 | setLoadingPrompt(false); |
| 106 | } |
| 107 | }; |
| 108 | |
| 109 | const handleSaveSystemPrompt = async () => { |
| 110 | try { |