We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db6254f commit 5ad8145Copy full SHA for 5ad8145
completion-ui/completion/scripts.js
@@ -1058,6 +1058,7 @@ async function GetModelInfoFromServer() {
1058
metadata = data0.meta;
1059
const modelName = metadata["general.name"];
1060
const n_ctx_train = metadata["n_ctx_train"];
1061
+ const n_ctx = metadata["n_ctx"];
1062
1063
if (kLogging) console.log("json.data[0]:\n");
1064
if (kLogging) console.log(data0);
@@ -1071,7 +1072,7 @@ async function GetModelInfoFromServer() {
1071
1072
if (kLogging) console.log("meta[\"n_ctx_train\"]:\n");
1073
if (kLogging) console.log(n_ctx_train);
1074
- contextWindowSize = n_ctx_train;
1075
+ contextWindowSize = n_ctx;
1076
elements.model.innerHTML = modelName;
1077
}
1078
catch(exc) {
0 commit comments