Skip to content

Commit 4e04c25

Browse files
author
Conor Nash
committed
Attempt to update with latest commits
1 parent f2ee640 commit 4e04c25

13 files changed

Lines changed: 28 additions & 28 deletions

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Thank you for your interest in contributing to Efrit! This guide will help you g
3030

3131
2. **Set up your API key** in `~/.authinfo`:
3232
```
33-
machine api.anthropic.com login personal password YOUR_API_KEY_HERE
33+
machine openrouter.ai login personal password YOUR_API_KEY_HERE
3434
```
3535

3636
3. **Load Efrit for development**:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Efrit provides multiple interfaces for AI-powered Emacs development:
6262

6363
3. **Configure your API key** in `~/.authinfo`:
6464
```
65-
machine api.anthropic.com login personal password YOUR_API_KEY_HERE
65+
machine openrouter.ai login personal password YOUR_API_KEY_HERE
6666
```
6767

6868
4. **Restart Emacs** and test with `M-x efrit-chat`
@@ -218,7 +218,7 @@ Transform Efrit from a user assistant into an **autonomous AI development platfo
218218

219219
```elisp
220220
;; Standard Efrit settings
221-
(setq efrit-model "claude-3-5-sonnet-20241022")
221+
(setq efrit-model "anthropic/claude-sonnet-4")
222222
(setq efrit-max-tokens 8192)
223223
224224
;; 🆕 Agent communication settings

lisp/efrit-agent.el

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
:group 'efrit
3232
:prefix "efrit-agent-")
3333

34-
(defcustom efrit-agent-backend "claude-3.5-sonnet"
34+
(defcustom efrit-agent-backend "anthropic/claude-sonnet-4"
3535
"Default model backend for agent mode."
36-
:type '(choice (const "claude-3.5-sonnet")
37-
(const "gpt-4")
36+
:type '(choice (const "anthropic/claude-sonnet-4")
37+
(const "gpt-4")
3838
(const "local-llama")
3939
(string :tag "Custom API endpoint"))
4040
:group 'efrit-agent)
@@ -44,12 +44,12 @@
4444
:type 'integer
4545
:group 'efrit-agent)
4646

47-
(defcustom efrit-agent-api-url "https://api.anthropic.com/v1/messages"
47+
(defcustom efrit-agent-api-url "https://openrouter.ai/api/v1/chat/completions"
4848
"API URL for Claude requests."
4949
:type 'string
5050
:group 'efrit-agent)
5151

52-
(defcustom efrit-agent-model "claude-4-sonnet-20250514"
52+
(defcustom efrit-agent-model "anthropic/claude-sonnet-4"
5353
"Model to use for agent requests. Updated to latest Claude 4 Sonnet."
5454
:type 'string
5555
:group 'efrit-agent)
@@ -166,7 +166,7 @@
166166
(defun efrit-agent--get-api-key ()
167167
"Get the Anthropic API key from .authinfo file."
168168
(efrit-agent--log "DEBUG" "Looking for API key in .authinfo")
169-
(let* ((auth-info (car (auth-source-search :host "api.anthropic.com"
169+
(let* ((auth-info (car (auth-source-search :host "openrouter.ai"
170170
:user "personal"
171171
:require '(:secret))))
172172
(secret (plist-get auth-info :secret)))
@@ -176,7 +176,7 @@
176176
(if (functionp secret)
177177
(funcall secret)
178178
secret))
179-
(efrit-agent--log "ERROR" "No API key found in .authinfo for api.anthropic.com")
179+
(efrit-agent--log "ERROR" "No API key found in .authinfo for openrouter.ai")
180180
nil)))
181181

182182
(defun efrit-agent--build-system-prompt ()

lisp/efrit-chat-streamlined.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
:group 'tools
4141
:prefix "efrit-")
4242

43-
(defcustom efrit-model "claude-3-5-sonnet-20241022"
43+
(defcustom efrit-model "anthropic/claude-sonnet-4"
4444
"Claude model to use for conversations."
4545
:type 'string
4646
:group 'efrit)
@@ -55,7 +55,7 @@
5555
:type 'float
5656
:group 'efrit)
5757

58-
(defcustom efrit-api-url "https://api.anthropic.com/v1/messages"
58+
(defcustom efrit-api-url "https://openrouter.ai/api/v1/chat/completions"
5959
"URL for the Anthropic API endpoint."
6060
:type 'string
6161
:group 'efrit)

lisp/efrit-chat.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
:type 'string
4747
:group 'efrit)
4848

49-
(defcustom efrit-model "claude-3-5-sonnet-20241022"
49+
(defcustom efrit-model "anthropic/claude-sonnet-4"
5050
"Claude model to use for conversations."
5151
:type 'string
5252
:group 'efrit)
@@ -63,7 +63,7 @@ or 4096 without. This setting uses the higher limit."
6363
:type 'float
6464
:group 'efrit)
6565

66-
(defcustom efrit-api-url "https://api.anthropic.com/v1/messages"
66+
(defcustom efrit-api-url "https://openrouter.ai/api/v1/chat/completions"
6767
"URL for the Anthropic API endpoint."
6868
:type 'string
6969
:group 'efrit)
@@ -126,7 +126,7 @@ or 4096 without. This setting uses the higher limit."
126126

127127
(defun efrit--get-api-key ()
128128
"Get the Anthropic API key from .authinfo file."
129-
(let* ((auth-info (car (auth-source-search :host "api.anthropic.com"
129+
(let* ((auth-info (car (auth-source-search :host "openrouter.ai"
130130
:user "personal"
131131
:require '(:secret))))
132132
(secret (plist-get auth-info :secret)))

lisp/efrit-do.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ If nil, uses the default location in the efrit data directory."
8484
:type 'boolean
8585
:group 'efrit-do)
8686

87-
(defcustom efrit-model "claude-3-5-sonnet-20241022"
87+
(defcustom efrit-model "anthropic/claude-sonnet-4"
8888
"Claude model to use for efrit-do commands."
8989
:type 'string
9090
:group 'efrit-do)
@@ -94,7 +94,7 @@ If nil, uses the default location in the efrit data directory."
9494
:type 'integer
9595
:group 'efrit-do)
9696

97-
(defcustom efrit-api-url "https://api.anthropic.com/v1/messages"
97+
(defcustom efrit-api-url "https://openrouter.ai/api/v1/chat/completions"
9898
"URL for the Anthropic API endpoint used by efrit-do."
9999
:type 'string
100100
:group 'efrit-do)

lisp/efrit-do.el.backup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ If nil, uses the default location in the efrit data directory."
8484
:type 'boolean
8585
:group 'efrit-do)
8686

87-
(defcustom efrit-model "claude-3-5-sonnet-20241022"
87+
(defcustom efrit-model "anthropic/claude-sonnet-4"
8888
"Claude model to use for efrit-do commands."
8989
:type 'string
9090
:group 'efrit-do)
@@ -94,7 +94,7 @@ If nil, uses the default location in the efrit data directory."
9494
:type 'integer
9595
:group 'efrit-do)
9696

97-
(defcustom efrit-api-url "https://api.anthropic.com/v1/messages"
97+
(defcustom efrit-api-url "https://openrouter.ai/api/v1/chat/completions"
9898
"URL for the Anthropic API endpoint used by efrit-do."
9999
:type 'string
100100
:group 'efrit-do)

lisp/efrit-tools.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ LEVEL is one of: debug info warn error."
108108

109109
(defun efrit--get-api-key ()
110110
"Get the Anthropic API key from .authinfo file."
111-
(let* ((auth-info (car (auth-source-search :host "api.anthropic.com"
111+
(let* ((auth-info (car (auth-source-search :host "openrouter.ai"
112112
:user "personal"
113113
:require '(:secret))))
114114
(secret (plist-get auth-info :secret)))

plans/AUTONOMOUS_MODE_DESIGN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ efrit-agent → Aggressive problem-solving until complete (NEW)
2525
"context": "It's several versions behind, managed by straight.el",
2626
"session_id": "upgrade-20250814",
2727
"max_iterations": 50,
28-
"model_backend": "claude-3.5-sonnet"
28+
"model_backend": "anthropic/claude-sonnet-4"
2929
}
3030
```
3131

@@ -112,9 +112,9 @@ Respond with your next action as JSON...
112112

113113
### 4. **Model Backend Abstraction**
114114
```elisp
115-
(defcustom efrit-agent-backend "claude-3.5-sonnet"
115+
(defcustom efrit-agent-backend "anthropic/claude-sonnet-4"
116116
"Default model backend for agent mode."
117-
:type '(choice (const "claude-3.5-sonnet")
117+
:type '(choice (const "anthropic/claude-sonnet-4")
118118
(const "gpt-4")
119119
(const "local-llama")
120120
(string :tag "Custom API endpoint")))

qa/qa-final-comprehensive-report.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
(insert ";; Recommended production settings\n")
133133
(insert "(setq efrit-work-buffer-max-size 100000) ; 100KB limit\n")
134134
(insert "(setq efrit-show-work-buffer nil) ; Don't auto-show\n")
135-
(insert "(setq efrit-model \"claude-3-5-sonnet-20241022\") ; Latest model\n")
135+
(insert "(setq efrit-model \"anthropic/claude-sonnet-4") ; Latest model\n")
136136
(insert "(setq efrit-max-tokens 8192) ; Maximum context\n")
137137
(insert "(setq efrit-temperature 0.1) ; Focused responses\n")
138138
(insert "```\n\n")

0 commit comments

Comments
 (0)