mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-04-27 15:29:49 +08:00
feat: 移除旧版提示词
This commit is contained in:
@@ -40,12 +40,7 @@ export function createTool(context: ToolContext): AgentTool<typeof schema> {
|
||||
if ((contextBefore > 0 || contextAfter > 0) && result.messages.length > 0) {
|
||||
const hitIds = result.messages.map((m) => m.id).filter((id): id is number => id != null)
|
||||
if (hitIds.length > 0) {
|
||||
finalMessages = await workerManager.getSearchMessageContext(
|
||||
sessionId,
|
||||
hitIds,
|
||||
contextBefore,
|
||||
contextAfter
|
||||
)
|
||||
finalMessages = await workerManager.getSearchMessageContext(sessionId, hitIds, contextBefore, contextAfter)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -41,12 +41,7 @@ export function createTool(context: ToolContext): AgentTool<typeof schema> {
|
||||
if ((contextBefore > 0 || contextAfter > 0) && result.messages.length > 0) {
|
||||
const hitIds = result.messages.map((m) => m.id).filter((id): id is number => id != null)
|
||||
if (hitIds.length > 0) {
|
||||
finalMessages = await workerManager.getSearchMessageContext(
|
||||
sessionId,
|
||||
hitIds,
|
||||
contextBefore,
|
||||
contextAfter
|
||||
)
|
||||
finalMessages = await workerManager.getSearchMessageContext(sessionId, hitIds, contextBefore, contextAfter)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user