mirror of
https://github.com/thegeneralist01/config.git
synced 2026-12-04 18:56:56 +01:00
Manage OMP model routing declaratively
This commit is contained in:
parent
e6b7632401
commit
21703da739
6 changed files with 114 additions and 23 deletions
41
modules/dotfiles/omp/models.nix
Normal file
41
modules/dotfiles/omp/models.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
let
|
||||
modelRoles = {
|
||||
default = "openai-codex/gpt-6.1-sol:high";
|
||||
smol = "google-antigravity/gemini-3.8-flash:medium";
|
||||
slow = "anthropic/claude-opus-5-5:high";
|
||||
plan = "anthropic/claude-opus-5-5:high";
|
||||
task = "google-antigravity/gemini-3.8-flash:medium";
|
||||
commit = "google-antigravity/gemini-3.8-flash:minimal";
|
||||
advisor = "openai-codex/gpt-5.5:xhigh";
|
||||
tiny = "openai-codex/gpt-5.4-mini:medium";
|
||||
web = "web/exa";
|
||||
speech = "xai-oauth/grok-tts";
|
||||
};
|
||||
|
||||
preset = overrides: {
|
||||
modelRoles = modelRoles // overrides;
|
||||
defaultThinkingLevel = "auto";
|
||||
};
|
||||
in
|
||||
{
|
||||
inherit modelRoles;
|
||||
|
||||
task.agentModelOverrides = {
|
||||
l-worker = "openai-codex/gpt-6.1-sol";
|
||||
l-reviewer = "openai-codex/gpt-6.1-sol:high";
|
||||
l-planner = "@plan:high";
|
||||
reviewer = "openai-codex/gpt-6.1-sol:high";
|
||||
};
|
||||
|
||||
# Presets share the task/plan roles so switching the main model cannot undo them.
|
||||
modelPresets = {
|
||||
gemmysolopus = preset { };
|
||||
haikugemmyopus = preset {
|
||||
smol = "anthropic/claude-haiku-4-5:medium";
|
||||
default = "google-antigravity/gemini-3.8-flash";
|
||||
};
|
||||
aura = preset {
|
||||
default = "anthropic/claude-opus-5-5:high";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue