diff --git a/src/context/ToolContext.jsx b/src/context/ToolContext.jsx index 781c2f0..82c9147 100644 --- a/src/context/ToolContext.jsx +++ b/src/context/ToolContext.jsx @@ -20,13 +20,11 @@ export function ToolProvider({ children }) { const res = await fetch(`${API_BASE_URL}/tools`); const data = await res.json(); // 'GxP 챗봇'과 'chatgpt' 카드는 도구 목록에서 제거 - const filtered = (Array.isArray(data) ? data : []).filter((tool) => !['chatbot_gxp','chatgpt'].includes(tool.id)); + const filtered = (Array.isArray(data) ? data : []).filter((tool) => !['chatbot_gxp','chatgpt','lims_text2sql','research_qa'].includes(tool.id)); const mapped = filtered.map((tool) => { const category = ['전체']; if (['dev_chatbot', 'doc_translation'].includes(tool.id)) { category.push('오픈AI'); - } else if (['lims_text2sql', 'research_qa'].includes(tool.id)) { - category.push('내부AI'); } return { ...tool, category }; }); @@ -47,7 +45,7 @@ export function ToolProvider({ children }) { } } catch {} // 즐겨찾기에 남아 있을 수 있는 제거 대상 정리 - setFavorites((prev) => prev.filter((id) => !['chatbot_gxp','chatgpt'].includes(id))); + setFavorites((prev) => prev.filter((id) => !['chatbot_gxp','chatgpt','lims_text2sql','research_qa'].includes(id))); } catch (_) {} } load(); diff --git a/src/pages/ChatPage.jsx b/src/pages/ChatPage.jsx index b431ab5..6d50111 100644 --- a/src/pages/ChatPage.jsx +++ b/src/pages/ChatPage.jsx @@ -146,25 +146,7 @@ export default function ChatPage() { }, [messages, selectedTool?.id]); - // iframe 도구 처리 - const iframeTools = { - research_qa: 'http://yongin-qa-chatbot.daewoongai.com/', - lims_text2sql: 'http://3.38.184.255:8080/', - }; - - if (selectedTool && iframeTools[selectedTool.id]) { - return ( -
- {historyPanel} -