From dde8ef210f0d6f845810c3bcc58c23ebff1da884 Mon Sep 17 00:00:00 2001 From: MaxRobinsonTheGreat Date: Sun, 17 Aug 2025 11:19:34 -0500 Subject: [PATCH] quickfix gpt 5, add assistant base profile --- profiles/defaults/assistant.json | 14 ++++++++++++++ settings.js | 2 +- src/mindcraft/public/settings_spec.json | 2 +- src/models/gpt.js | 2 +- src/models/prompter.js | 2 ++ 5 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 profiles/defaults/assistant.json diff --git a/profiles/defaults/assistant.json b/profiles/defaults/assistant.json new file mode 100644 index 0000000..eb66d12 --- /dev/null +++ b/profiles/defaults/assistant.json @@ -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 + } +} \ No newline at end of file diff --git a/settings.js b/settings.js index b27f7f5..855fea7 100644 --- a/settings.js +++ b/settings.js @@ -7,7 +7,7 @@ const settings = { // the mindserver manages all agents and hosts the UI "mindserver_port": 8080, - "base_profile": "survival", // survival, creative, or god_mode + "base_profile": "survival", // survival, creative, assistant, or god_mode "profiles": [ "./andy.json", // "./profiles/gpt.json", diff --git a/src/mindcraft/public/settings_spec.json b/src/mindcraft/public/settings_spec.json index 9023af6..f431256 100644 --- a/src/mindcraft/public/settings_spec.json +++ b/src/mindcraft/public/settings_spec.json @@ -26,7 +26,7 @@ }, "base_profile": { "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" }, "load_memory": { diff --git a/src/models/gpt.js b/src/models/gpt.js index 4f33f22..e8e5c5c 100644 --- a/src/models/gpt.js +++ b/src/models/gpt.js @@ -28,7 +28,7 @@ export class GPT { stop: stop_seq, ...(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; } diff --git a/src/models/prompter.js b/src/models/prompter.js index d1de9bf..89d5fe9 100644 --- a/src/models/prompter.js +++ b/src/models/prompter.js @@ -37,6 +37,8 @@ export class Prompter { let base_fp = ''; if (settings.base_profile.includes('survival')) { 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')) { base_fp = './profiles/defaults/creative.json'; } else if (settings.base_profile.includes('god_mode')) {