stupid open code fix

This commit is contained in:
RingOfStorms (Joshua Bell) 2026-01-21 22:48:43 -06:00
parent c789e0627a
commit d99e12d64e
3 changed files with 13 additions and 9 deletions

View file

@ -7,6 +7,8 @@
let
declaration = "services/misc/litellm.nix";
nixpkgsLitellm = inputs.litellm-nixpkgs;
# Replace "claude" with "cl4ude" in model names to avoid special handling in other apps
sanitizeModelName = s: builtins.replaceStrings [ "claude" ] [ "cl4ude" ] s;
pkgsLitellm = import nixpkgsLitellm {
inherit (pkgs) system;
config.allowUnfree = true;
@ -114,7 +116,7 @@ in
# 宙 Proxy
++ (builtins.map
(m: {
model_name = "air-${m}";
model_name = "air-${sanitizeModelName m}";
litellm_params = {
model = "litellm_proxy/${m}";
api_base = "http://100.64.0.8:9010/air_prd";

View file

@ -6,6 +6,8 @@
let
declaration = "services/misc/litellm.nix";
nixpkgsLitellm = inputs.litellm-nixpkgs;
# Replace "claude" with "cl4ude" in model names to avoid special handling in other apps
sanitizeModelName = s: builtins.replaceStrings [ "claude" ] [ "cl4ude" ] s;
pkgsLitellm = import nixpkgsLitellm {
inherit (pkgs) system;
config.allowUnfree = true;
@ -164,7 +166,7 @@ in
# 宙 Proxy
++ (builtins.map
(m: {
model_name = "air-${m}";
model_name = "air-${sanitizeModelName m}";
litellm_params = {
model = "litellm_proxy/${m}";
api_base = "http://100.64.0.8:9010/air_prd";
@ -207,7 +209,7 @@ in
)
++ (builtins.map
(m: {
model_name = "air_dev-${m}";
model_name = "air_dev-${sanitizeModelName m}";
litellm_params = {
model = "litellm_proxy/${m}";
api_base = "http://100.64.0.8:9010/air_alp";

12
hosts/lio/flake.lock generated
View file

@ -354,11 +354,11 @@
},
"nixpkgs_4": {
"locked": {
"lastModified": 1768456270,
"narHash": "sha256-NgaL2CCiUR6nsqUIY4yxkzz07iQUlUCany44CFv+OxY=",
"lastModified": 1768393167,
"narHash": "sha256-n2063BRjHde6DqAz2zavhOOiLUwA3qXt7jQYHyETjX8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f4606b01b39e09065df37905a2133905246db9ed",
"rev": "2f594d5af95d4fdac67fba60376ec11e482041cb",
"type": "github"
},
"original": {
@ -1285,11 +1285,11 @@
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1768623515,
"narHash": "sha256-7rfFPs9rBXpNmnK77Lc8PBbdTQt6ITotwbJkL85qLIA=",
"lastModified": 1769055069,
"narHash": "sha256-OHxGjKiZcB9hfnfeGLFmtLcCvnBlK/GjU79ATRlFWmE=",
"owner": "anomalyco",
"repo": "opencode",
"rev": "85ab9798c65dfb36b0f47de3b1fd786e7751f761",
"rev": "fc0210c2fdd3194754dbe1eeff094e3038ffecbc",
"type": "github"
},
"original": {