mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
fix: gen obj retry
This commit is contained in:
parent
2cf9061a39
commit
8fa9aaa151
@ -34,20 +34,20 @@
|
||||
"models": {
|
||||
"gemini": {
|
||||
"default": {
|
||||
"model": "gemini-2.0-flash-lite",
|
||||
"model": "gemini-2.0-flash",
|
||||
"temperature": 0.6,
|
||||
"maxTokens": 8000
|
||||
},
|
||||
"tools": {
|
||||
"coder": { "maxTokens": 2000 },
|
||||
"searchGrounding": { },
|
||||
"coder": { "maxTokens": 2000, "model": "gemini-2.0-flash-lite" },
|
||||
"searchGrounding": {},
|
||||
"dedup": { },
|
||||
"evaluator": {"maxTokens": 2000 },
|
||||
"errorAnalyzer": {"maxTokens": 1000},
|
||||
"queryRewriter": {"maxTokens": 2000},
|
||||
"agent": {"model": "gemini-2.0-flash" },
|
||||
"agent": {},
|
||||
"agentBeastMode": {},
|
||||
"fallback": {"maxTokens": 8000}
|
||||
"fallback": {"maxTokens": 8000, "model": "gemini-2.0-flash-lite"}
|
||||
}
|
||||
},
|
||||
"openai": {
|
||||
|
||||
@ -508,7 +508,7 @@ export async function getResponse(question?: string,
|
||||
allowReflect = true;
|
||||
allowRead = true;
|
||||
allowSearch = true;
|
||||
// allowCoding = true;
|
||||
allowCoding = true;
|
||||
|
||||
// execute the step and action
|
||||
if (thisStep.action === 'answer' && thisStep.answer) {
|
||||
@ -562,6 +562,9 @@ export async function getResponse(question?: string,
|
||||
}
|
||||
|
||||
if (currentQuestion.trim() === question) {
|
||||
// disable coding for preventing answer degradation
|
||||
allowCoding = false;
|
||||
|
||||
if (evaluation.pass) {
|
||||
diaryContext.push(`
|
||||
At step ${step}, you took **answer** action and finally found the answer to the original question:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user