mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-26 09:03:43 +02:00
quickfix gpt 5, add assistant base profile
This commit is contained in:
parent
61e1010e49
commit
dde8ef210f
5 changed files with 19 additions and 3 deletions
14
profiles/defaults/assistant.json
Normal file
14
profiles/defaults/assistant.json
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"modes": {
|
||||||
|
"self_preservation": true,
|
||||||
|
"unstuck": true,
|
||||||
|
"cowardice": false,
|
||||||
|
"self_defense": true,
|
||||||
|
"hunting": false,
|
||||||
|
"item_collecting": true,
|
||||||
|
"torch_placing": true,
|
||||||
|
"elbow_room": true,
|
||||||
|
"idle_staring": true,
|
||||||
|
"cheat": false
|
||||||
|
}
|
||||||
|
}
|
|
@ -7,7 +7,7 @@ const settings = {
|
||||||
// the mindserver manages all agents and hosts the UI
|
// the mindserver manages all agents and hosts the UI
|
||||||
"mindserver_port": 8080,
|
"mindserver_port": 8080,
|
||||||
|
|
||||||
"base_profile": "survival", // survival, creative, or god_mode
|
"base_profile": "survival", // survival, creative, assistant, or god_mode
|
||||||
"profiles": [
|
"profiles": [
|
||||||
"./andy.json",
|
"./andy.json",
|
||||||
// "./profiles/gpt.json",
|
// "./profiles/gpt.json",
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
},
|
},
|
||||||
"base_profile": {
|
"base_profile": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Allowed values: survival, creative, god_mode. Each has fine tuned settings for different game modes.",
|
"description": "Allowed values: survival, assistant, creative, god_mode. Each has fine tuned settings for different game modes.",
|
||||||
"default": "survival"
|
"default": "survival"
|
||||||
},
|
},
|
||||||
"load_memory": {
|
"load_memory": {
|
||||||
|
|
|
@ -28,7 +28,7 @@ export class GPT {
|
||||||
stop: stop_seq,
|
stop: stop_seq,
|
||||||
...(this.params || {})
|
...(this.params || {})
|
||||||
};
|
};
|
||||||
if (this.model_name.includes('o1')) {
|
if (this.model_name.includes('o1') || this.model_name.includes('o3') || this.model_name.includes('5')) {
|
||||||
delete pack.stop;
|
delete pack.stop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,8 @@ export class Prompter {
|
||||||
let base_fp = '';
|
let base_fp = '';
|
||||||
if (settings.base_profile.includes('survival')) {
|
if (settings.base_profile.includes('survival')) {
|
||||||
base_fp = './profiles/defaults/survival.json';
|
base_fp = './profiles/defaults/survival.json';
|
||||||
|
} else if (settings.base_profile.includes('assistant')) {
|
||||||
|
base_fp = './profiles/defaults/assistant.json';
|
||||||
} else if (settings.base_profile.includes('creative')) {
|
} else if (settings.base_profile.includes('creative')) {
|
||||||
base_fp = './profiles/defaults/creative.json';
|
base_fp = './profiles/defaults/creative.json';
|
||||||
} else if (settings.base_profile.includes('god_mode')) {
|
} else if (settings.base_profile.includes('god_mode')) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue