feat(librechat): add example settings=

This commit is contained in:
Mohammad Rafiq 2025-05-31 15:00:20 +08:00
parent b2f596e5b1
commit 3947463e93
No known key found for this signature in database
2 changed files with 50 additions and 1 deletions

View file

@ -19,7 +19,32 @@ in
example = # nix example = # nix
'' ''
{ {
version = "1.0.8";
cache = true;
interface = {
privacyPolicy = {
externalUrl = "https://librechat.ai/privacy-policy";
openNewTab = true;
};
};
endpoints = {
custom = [
{
name = "OpenRouter";
# Note that the following $ should be escaped with a backslash, not '''
apiKey = "''${OPENROUTER_KEY}";
baseURL = "https://openrouter.ai/api/v1";
models = {
default = ["meta-llama/llama-3-70b-instruct"];
fetch = true;
};
titleConvo = true;
titleModule = "meta-llama/llama-3-70b-instruct";
dropParams = ["stop"];
modelDisplayLabel = "OpenRouter";
}
];
};
} }
''; '';
description = "A free-form attribute set that will be written to librechat.yaml."; description = "A free-form attribute set that will be written to librechat.yaml.";

View file

@ -32,6 +32,30 @@
mongodbURI = "mongodb://apollo:27017"; mongodbURI = "mongodb://apollo:27017";
settings = { settings = {
version = "1.0.8"; version = "1.0.8";
cache = true;
interface = {
privacyPolicy = {
externalUrl = "https://librechat.ai/privacy-policy";
openNewTab = true;
};
};
endpoints = {
custom = [
{
name = "OpenRouter";
apiKey = "\${OPENROUTER_KEY}";
baseURL = "https://openrouter.ai/api/v1";
models = {
default = [ "meta-llama/llama-3-70b-instruct" ];
fetch = true;
};
titleConvo = true;
titleModule = "meta-llama/llama-3-70b-instruct";
dropParams = [ "stop" ];
modelDisplayLabel = "OpenRouter";
}
];
};
}; };
auth = { auth = {
allowEmailLogin = true; allowEmailLogin = true;