mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-18 03:25:46 +00:00
chatllm: do not write uninitialized data to stream (#1486)
This commit is contained in:
parent
7a19047329
commit
04499d1c7d
@ -779,7 +779,7 @@ bool ChatLLM::serialize(QDataStream &stream, int version, bool serializeKV)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (version <= 3) {
|
if (version <= 3) {
|
||||||
int responseLogits;
|
int responseLogits = 0;
|
||||||
stream << responseLogits;
|
stream << responseLogits;
|
||||||
}
|
}
|
||||||
stream << m_ctx.n_past;
|
stream << m_ctx.n_past;
|
||||||
|
Loading…
Reference in New Issue
Block a user