jina-ai: use brave for search

This commit is contained in:
Yanlong Wang 2025-02-12 10:48:10 +08:00
parent ff59d20dce
commit 83144f8804
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37
2 changed files with 62 additions and 1 deletions

View File

@ -17,10 +17,10 @@ WORKDIR /app
# Copy application code # Copy application code
COPY ./src ./src COPY ./src ./src
COPY ./config.json ./
COPY ./tsconfig.json ./tsconfig.json COPY ./tsconfig.json ./tsconfig.json
RUN npm run build RUN npm run build
COPY ./jina-ai/config.json ./
COPY ./jina-ai/src ./jina-ai/src COPY ./jina-ai/src ./jina-ai/src
COPY ./jina-ai/tsconfig.json ./jina-ai/tsconfig.json COPY ./jina-ai/tsconfig.json ./jina-ai/tsconfig.json
WORKDIR /app/jina-ai WORKDIR /app/jina-ai

61
jina-ai/config.json Normal file
View File

@ -0,0 +1,61 @@
{
"env": {
"https_proxy": "",
"OPENAI_BASE_URL": "",
"GEMINI_API_KEY": "",
"OPENAI_API_KEY": "",
"JINA_API_KEY": "",
"BRAVE_API_KEY": "",
"DEFAULT_MODEL_NAME": ""
},
"defaults": {
"search_provider": "brave",
"llm_provider": "gemini",
"step_sleep": 0
},
"providers": {
"gemini": {
"createClient": "createGoogleGenerativeAI"
},
"openai": {
"createClient": "createOpenAI",
"clientConfig": {
"compatibility": "strict"
}
}
},
"models": {
"gemini": {
"default": {
"model": "gemini-2.0-flash",
"temperature": 0,
"maxTokens": 8000
},
"tools": {
"search-grounding": { "temperature": 0 },
"dedup": { "temperature": 0.1 },
"evaluator": {},
"errorAnalyzer": {},
"queryRewriter": { "temperature": 0.1 },
"agent": { "temperature": 0.7 },
"agentBeastMode": { "temperature": 0.7 }
}
},
"openai": {
"default": {
"model": "gpt-4o-mini",
"temperature": 0,
"maxTokens": 8000
},
"tools": {
"search-grounding": { "temperature": 0 },
"dedup": { "temperature": 0.1 },
"evaluator": {},
"errorAnalyzer": {},
"queryRewriter": { "temperature": 0.1 },
"agent": { "temperature": 0.7 },
"agentBeastMode": { "temperature": 0.7 }
}
}
}
}