Enable geoclue2 and add litellm models and API key vars
This commit is contained in:
parent
9848701145
commit
ee6fa6cd9b
2 changed files with 20 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
services.dbus.enable = lib.mkDefault true;
|
services.dbus.enable = lib.mkDefault true;
|
||||||
|
services.geoclue2.enable = true;
|
||||||
|
|
||||||
time.timeZone = null;
|
time.timeZone = null;
|
||||||
services.automatic-timezoned.enable = true;
|
services.automatic-timezoned.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,10 @@ in
|
||||||
settings = {
|
settings = {
|
||||||
environment_variables = {
|
environment_variables = {
|
||||||
LITELLM_PROXY_API_KEY = "na";
|
LITELLM_PROXY_API_KEY = "na";
|
||||||
|
|
||||||
|
# TODO get from openbao secrets somehow
|
||||||
|
OPENROUTER_API_KEY = "kv/data/machines/home/openrouter api-key";
|
||||||
|
ANTHROPIC_API_KEY = "kv/data/machines/home/anthropic-claude api-key";
|
||||||
};
|
};
|
||||||
litellm_settings = {
|
litellm_settings = {
|
||||||
check_provider_endpoints = true;
|
check_provider_endpoints = true;
|
||||||
|
|
@ -44,6 +48,20 @@ in
|
||||||
modify_params = true;
|
modify_params = true;
|
||||||
};
|
};
|
||||||
model_list = [
|
model_list = [
|
||||||
|
# Anthropic (direct)
|
||||||
|
{
|
||||||
|
model_name = "anthropic/*";
|
||||||
|
litellm_params = {
|
||||||
|
model = "anthropic/*";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
# OpenRouter
|
||||||
|
{
|
||||||
|
model_name = "openrouter/*";
|
||||||
|
litellm_params = {
|
||||||
|
model = "openrouter/*";
|
||||||
|
};
|
||||||
|
}
|
||||||
]
|
]
|
||||||
# Copilot
|
# Copilot
|
||||||
++ (builtins.map
|
++ (builtins.map
|
||||||
|
|
@ -142,3 +160,4 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue