Rename secret chatgpt-token to openrouter-api-key

This commit is contained in:
Andrea Ciceri 2025-06-04 15:00:28 +02:00
parent 7303969233
commit cea95102f7
No known key found for this signature in database
5 changed files with 7 additions and 7 deletions

View file

@ -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))
)