Rename secret chatgpt-token
to openrouter-api-key
This commit is contained in:
parent
7303969233
commit
cea95102f7
5 changed files with 7 additions and 7 deletions
|
@ -12,7 +12,7 @@ in
|
|||
{
|
||||
systemd.user.sessionVariables = {
|
||||
EDITOR = lib.mkForce "emacsclient -c";
|
||||
OPENAI_API_KEY_PATH = age.secrets.chatgpt-token.path;
|
||||
OPENROUTER_API_KEY_PATH = age.secrets.openrouter-api-key.path;
|
||||
};
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
|
|
|
@ -1038,7 +1038,7 @@ This is meant to be an helper to be called from the window manager."
|
|||
(gptel-backend (gptel-make-openai "OpenRouter"
|
||||
:host "openrouter.ai"
|
||||
:endpoint "/api/v1/chat/completions"
|
||||
:key (lambda () (require 'f) (f-read-text (getenv "OPENAI_API_KEY_PATH")))
|
||||
:key (lambda () (require 'f) (f-read-text (getenv "OPENROUTER_API_KEY_PATH")))
|
||||
:stream t
|
||||
:models '(google/gemini-2.5-flash-preview))
|
||||
)
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
];
|
||||
secrets = {
|
||||
"deltaflyer-wireguard-private-key" = { };
|
||||
"chatgpt-token".owner = "ccr";
|
||||
"openrouter-api-key".owner = "ccr";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -54,7 +54,7 @@
|
|||
];
|
||||
secrets = {
|
||||
"kirk-wireguard-private-key" = { };
|
||||
"chatgpt-token".owner = "ccr";
|
||||
"openrouter-api-key".owner = "ccr";
|
||||
"cachix-personal-token".owner = "ccr";
|
||||
"git-workspace-tokens".owner = "ccr";
|
||||
"autistici-password".owner = "ccr";
|
||||
|
@ -81,7 +81,7 @@
|
|||
];
|
||||
secrets = {
|
||||
"picard-wireguard-private-key" = { };
|
||||
"chatgpt-token".owner = "ccr";
|
||||
"openrouter-api-key".owner = "ccr";
|
||||
"cachix-personal-token".owner = "ccr";
|
||||
"git-workspace-tokens".owner = "ccr";
|
||||
"autistici-password".owner = "ccr";
|
||||
|
@ -143,7 +143,7 @@
|
|||
];
|
||||
secrets = {
|
||||
"pike-wireguard-private-key" = { };
|
||||
"chatgpt-token".owner = "ccr";
|
||||
"openrouter-api-key".owner = "ccr";
|
||||
"cachix-personal-token".owner = "ccr";
|
||||
"git-workspace-tokens".owner = "ccr";
|
||||
"autistici-password".owner = "ccr";
|
||||
|
|
|
@ -84,7 +84,7 @@ with keys.users;
|
|||
ccr-ssh
|
||||
sisko
|
||||
];
|
||||
"chatgpt-token.age".publicKeys = [
|
||||
"openrouter-api-key.age".publicKeys = [
|
||||
ccr-ssh
|
||||
kirk
|
||||
mothership
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue