mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-04-23 01:39:37 +08:00
feat: 移除旧版提示词
This commit is contained in:
@@ -556,9 +556,9 @@ export function getSearchMessageContext(
|
||||
contextIds.add(messageId)
|
||||
|
||||
if (hasSessionData) {
|
||||
const sessionRow = db
|
||||
.prepare('SELECT session_id FROM message_context WHERE message_id = ?')
|
||||
.get(messageId) as { session_id: number } | undefined
|
||||
const sessionRow = db.prepare('SELECT session_id FROM message_context WHERE message_id = ?').get(messageId) as
|
||||
| { session_id: number }
|
||||
| undefined
|
||||
|
||||
if (sessionRow) {
|
||||
if (contextBefore > 0) {
|
||||
|
||||
Reference in New Issue
Block a user