mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-18 01:06:39 +08:00
print chat context when enbale debug mode
This commit is contained in:
parent
4d52f02b80
commit
01d8a5b77d
@ -180,6 +180,8 @@ func (s *Server) sendMessage(session types.ChatSession, role types.ChatRole, pro
|
|||||||
s.Config.Chat.ApiKeys = append(s.Config.Chat.ApiKeys[:i], s.Config.Chat.ApiKeys[i+1:]...)
|
s.Config.Chat.ApiKeys = append(s.Config.Chat.ApiKeys[:i], s.Config.Chat.ApiKeys[i+1:]...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 更新配置文档
|
||||||
|
_ = utils.SaveConfig(s.Config, s.ConfigPath)
|
||||||
|
|
||||||
// 重发当前消息
|
// 重发当前消息
|
||||||
return s.sendMessage(session, role, prompt, ws)
|
return s.sendMessage(session, role, prompt, ws)
|
||||||
|
Loading…
Reference in New Issue
Block a user