mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-27 17:05:53 +00:00
chore: add RAG toolkit to frontend tool setting part
This commit is contained in:
parent
55e395be41
commit
98ac727fd0
3 changed files with 10 additions and 2 deletions
|
|
@ -164,6 +164,10 @@ class ConfigInfo:
|
|||
"env_vars": [],
|
||||
"toolkit": "pptx_toolkit",
|
||||
},
|
||||
ConfigGroup.RAG.value: {
|
||||
"env_vars": ["OPENAI_API_KEY"],
|
||||
"toolkit": "rag_toolkit",
|
||||
},
|
||||
ConfigGroup.REDDIT.value: {
|
||||
"env_vars": [
|
||||
"REDDIT_CLIENT_ID",
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ class ConfigGroup(str, Enum):
|
|||
IMAGE_ANALYSIS = "Image Analysis"
|
||||
MCP_SEARCH = "MCP Search"
|
||||
PPTX = "PPTX"
|
||||
RAG = "RAG"
|
||||
TERMINAL = "Terminal"
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -103,8 +103,11 @@ export default function IntegrationList({
|
|||
console.log(item);
|
||||
const searchKey = isSelectMode ? 'EXA Search' : 'Search';
|
||||
|
||||
if (item.key === searchKey || item.key === 'Lark') {
|
||||
const mcp = createMcpFromItem(item, item.key === 'Lark' ? 15 : 13);
|
||||
if (item.key === searchKey || item.key === 'Lark' || item.key === 'RAG') {
|
||||
const mcp = createMcpFromItem(
|
||||
item,
|
||||
item.key === 'Lark' ? 15 : item.key === 'RAG' ? 16 : 13
|
||||
);
|
||||
if (isSelectMode) {
|
||||
onShowEnvConfig?.(mcp);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue