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";