🔁 Enable Modelfile Support #25
Labels
No labels
High Priority
Low Priority
Upgrade Path
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
💡feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: milo/AI-Discord-Bot#25
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🧩 Modfile Support – Scope for Persona Injection via Ollama
Goal
Enable the bot to automatically load and use a
.modfile (or compatible JSON) to customize the model's behavior with persistent persona traits (e.g., Gojo personality). This enhances character realism and consistency without needing to prepend prompt injection every time.✅ Phase 1: Config + Environment Support
Add new config entry in
settings.yml:Modify
ai.pyto:use_modfilebefore sending prompttrue, includemodelfilefield in Ollama/generateAPI callsrc/or container mount⚙️ Phase 2: Modelfile Design Guidelines
.modor.jsontemplates defining:FROM llama3,FROM deepseek-coder, etc."You are Satoru Gojo from Jujutsu Kaisen..."[INST] ... [/INST]if requiredtemperature: 0.85(adds flair)num_ctx: 4096(for longer memory)stop: ["User:"](helps cut off rambling)💬 Example
.modfile🧪 Phase 3: Runtime Testing
modfile+prompt_injectboth exist🧠 Benefits
🔜 Future: Admin Command for Hot-Swap
!modfile switch gojo.mod!modfile disable!modfile info