chore: format llm c files
This commit is contained in:
@@ -145,10 +145,10 @@ void ChatSession::startGeneration(ChatMessage* target) {
|
||||
if (isLoaded()) {
|
||||
clientObject->startGeneration(this, generation);
|
||||
} else {
|
||||
// The store load is still in flight; the request needs the
|
||||
// full history, so start once it lands.
|
||||
connect(
|
||||
this, &ChatSession::loaded, clientObject,
|
||||
this,
|
||||
&ChatSession::loaded,
|
||||
clientObject,
|
||||
[this, generation, clientObject]() {
|
||||
clientObject->startGeneration(this, generation);
|
||||
});
|
||||
@@ -192,8 +192,6 @@ void ChatSession::retry(ChatMessage* target) {
|
||||
const int row = m_model->rowOf(target);
|
||||
if (row < 0) return;
|
||||
|
||||
// Drop everything newer than the target, then regenerate from the
|
||||
// context ending at the user message before it.
|
||||
m_model->removeRange(0, row - 1);
|
||||
if (m_model->rowCount() < 2) return;
|
||||
|
||||
@@ -233,7 +231,6 @@ void ChatSession::clear() {
|
||||
}
|
||||
}
|
||||
if (!isLoaded()) {
|
||||
// The load lands shortly; drop everything once it does.
|
||||
m_clearPending = true;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user