stupid open code fix
This commit is contained in:
parent
c789e0627a
commit
d99e12d64e
3 changed files with 13 additions and 9 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue