Skip to content

Commit 1707c52

Browse files
committed
Fix broken token width for anthropic/claude-3.7-sonnet and cleanup the code
1 parent 0ae725a commit 1707c52

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

chatgpt-shell-openrouter.el

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,13 @@ VALIDATE-COMMAND and OTHER-PARAMS for `chatgpt-shell-openai-make-model'."
115115
;;
116116
;; See https://openrouter.ai/qwen/qwen-2.5-coder-32b-instruct
117117
:other-params '((provider (quantizations . ["bf16"]))))
118-
(chatgpt-shell-openrouter-make-model
118+
(chatgpt-shell-openrouter-make-model
119119
:version "anthropic/claude-3.7-sonnet"
120120
:short-version "claude-3.7-sonnet"
121-
:label "Claude3.7Sonnet"
122-
:token-width 16
123-
;; See
124-
:context-window 200000
125-
)))
121+
:label "Claude"
122+
:token-width 4
123+
;; See https://openrouter.ai/anthropic/claude-3.7-sonnet
124+
:context-window 200000)))
126125

127126
(defcustom chatgpt-shell-openrouter-api-url-base "https://openrouter.ai/api"
128127
"OpenRouter API's base URL.

0 commit comments

Comments
 (0)