pi: fix openrouter apiKey, add llama.cpp provider

openrouter was broken: !cat + nix store path is not valid omp config.
Use builtins.readFile to inline the key at eval time.

Add self-hosted llama.cpp provider at llm.sigkill.computer with
Bearer token auth.
This commit is contained in:
2026-04-02 17:57:51 -04:00
parent 9a3ac53c50
commit 3e35fea183
2 changed files with 7 additions and 2 deletions

View File

@@ -18,11 +18,16 @@ let
}; };
}; };
# provider config — openrouter API key read from secrets at runtime # provider config — secrets read at eval time via builtins.readFile
# (omp treats apiKey as env-var-name-or-literal, not a shell command)
ompModels = { ompModels = {
providers = { providers = {
openrouter = { openrouter = {
apiKey = "!cat ${../secrets/openrouter_api_key}"; apiKey = lib.strings.trim (builtins.readFile ../secrets/openrouter_api_key);
};
"llama.cpp" = {
baseUrl = "https://llm.sigkill.computer";
apiKey = lib.strings.trim (builtins.readFile ../secrets/llama_cpp_api_key);
}; };
}; };
}; };

Binary file not shown.