feat(librechat): add example settings=
This commit is contained in:
parent
b2f596e5b1
commit
3947463e93
2 changed files with 50 additions and 1 deletions
|
@ -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.";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue