Skip to content

Commit 3468c28

Browse files
committed
fixed adv mode
1 parent 866cc34 commit 3468c28

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

kcpp_adapters/OpenAI-Harmony.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"user_start": "<|start|>user<|message|>",
55
"user_end": "<|end|>",
66
"assistant_start": "<|start|>assistant<|channel|>final<|message|>",
7-
"assistant_end": "<|return|>"
7+
"assistant_end": "<|end|>"
88
}

klite.embd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Current version indicated by LITEVER below.
1212
-->
1313

1414
<script id="init-config">
15-
const LITEVER = 268;
15+
const LITEVER = 269;
1616
const urlParams = new URLSearchParams(window.location.search);
1717
var localflag = urlParams.get('local'); //this will be replaced automatically in embedded kcpp
1818
const STORAGE_PREFIX = (localflag?"e_":"")+"kaihordewebui_";
@@ -3633,7 +3633,7 @@ Current version indicated by LITEVER below.
36333633
"user":"<|start|>user<|message|>",
36343634
"user_end":"<|end|>",
36353635
"assistant":"<|start|>assistant<|channel|>final<|message|>",
3636-
"assistant_end":"<|return|>",
3636+
"assistant_end":"<|end|>",
36373637
"system":"<|start|>developer<|message|>",
36383638
"system_end":"<|end|>",
36393639
}
@@ -15975,12 +15975,12 @@ Current version indicated by LITEVER below.
1597515975
newgen = "\n\n\> " + newgen + diceaddon + "\n\n";
1597615976
}
1597715977
//if very first submission is a story in adventure mode, swap to action
15978-
if(localsettings.opmode == 2 && newgen != "" && gametext_arr.length==0)
15978+
if(localsettings.opmode == 2 && (gametext_arr.length==0 || (gametext_arr.length==1 && gametext_arr[0]=="")))
1597915979
{
1598015980
if(localsettings.adventure_switch_mode==0)
1598115981
{
1598215982
localsettings.adventure_switch_mode = 1;
15983-
if (current_memory.trim() == "")
15983+
if (current_memory.trim() == "" && newgen!="")
1598415984
{
1598515985
doNotGenerate = true;
1598615986
}

model_adapter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,10 @@ void print_tok_vec(std::vector<float> &embd)
356356
{
357357
fileformatmeta->model_architecture = GGUFArch::ARCH_GLM4;
358358
}
359+
else if(modelarch=="gpt-oss")
360+
{
361+
fileformatmeta->model_architecture = GGUFArch::ARCH_GPTOSS;
362+
}
359363
printf("Arch Category: %d\n",fileformatmeta->model_architecture);
360364

361365
}

model_adapter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ enum GGUFArch
6464
ARCH_GLM4 = 9,
6565
ARCH_GEMMA3N = 10,
6666
ARCH_JAMBA = 11,
67+
ARCH_GPTOSS = 12,
6768
};
6869

6970
struct FileFormatExtraMeta

0 commit comments

Comments
 (0)