Skip to content

Commit 5ad8145

Browse files
Update scripts.js
Signed-off-by: Brad Hutchings <[email protected]>
1 parent db6254f commit 5ad8145

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

completion-ui/completion/scripts.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,7 @@ async function GetModelInfoFromServer() {
10581058
metadata = data0.meta;
10591059
const modelName = metadata["general.name"];
10601060
const n_ctx_train = metadata["n_ctx_train"];
1061+
const n_ctx = metadata["n_ctx"];
10611062

10621063
if (kLogging) console.log("json.data[0]:\n");
10631064
if (kLogging) console.log(data0);
@@ -1071,7 +1072,7 @@ async function GetModelInfoFromServer() {
10711072
if (kLogging) console.log("meta[\"n_ctx_train\"]:\n");
10721073
if (kLogging) console.log(n_ctx_train);
10731074

1074-
contextWindowSize = n_ctx_train;
1075+
contextWindowSize = n_ctx;
10751076
elements.model.innerHTML = modelName;
10761077
}
10771078
catch(exc) {

0 commit comments

Comments
 (0)