File tree Expand file tree Collapse file tree 4 files changed +6
-16
lines changed
Expand file tree Collapse file tree 4 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 33## Unreleased
44
55- More tolerant whitespace handling after ` data: ` .
6+ - Fix login for google provider.
67
78## 0.61.0
89
Original file line number Diff line number Diff line change 9090 (swap! db* assoc-in [:chats chat-id :login-provider ] nil )
9191 (swap! db* assoc-in [:chats chat-id :status ] :idle )
9292 (when-not silent?
93- (send-msg! (format " Login successful! You can now use the '%s' models." provider))))
93+ (send-msg! (format " \n Login successful! You can now use the '%s' models." provider))))
Original file line number Diff line number Diff line change 77 [eca.llm-providers.azure]
88 [eca.llm-providers.copilot]
99 [eca.llm-providers.deepseek]
10+ [eca.llm-providers.google]
1011 [eca.llm-providers.ollama :as llm-providers.ollama]
1112 [eca.llm-providers.openai :as llm-providers.openai]
1213 [eca.llm-providers.openai-chat :as llm-providers.openai-chat]
Original file line number Diff line number Diff line change 22 (:require
33 [clojure.string :as string]
44 [eca.config :as config]
5- [eca.features.login :as f.login]
6- [eca.shared :refer [multi-str]]))
5+ [eca.features.login :as f.login]))
76
87(defmethod f.login /login-step [" google" :login/start ] [{:keys [db* chat-id provider send-msg!]}]
98 (swap! db* assoc-in [:chats chat-id :login-provider ] provider)
10- (swap! db* assoc-in [:auth provider] {:step :login/waiting-login-method })
11- (send-msg! (multi-str " Now, inform the login method:"
12- " "
13- " manual: Manually enter API Key" )))
14-
15- (defmethod f.login /login-step [" google" :login/waiting-login-method ] [{:keys [db* input provider send-msg!]}]
16- (case input
17- " manual"
18- (do
19- (swap! db* assoc-in [:auth provider] {:step :login/waiting-api-key
20- :mode :manual })
21- (send-msg! " Paste your google API Key" ))
22- (send-msg! (format " Unknown login method '%s'. Inform one of the options: max, console, manual" input))))
9+ (swap! db* assoc-in [:auth provider] {:step :login/waiting-api-key })
10+ (send-msg! " Paste your google API Key" ))
2311
2412(defmethod f.login /login-step [" google" :login/waiting-api-key ] [{:keys [db* input provider send-msg!] :as ctx}]
2513 (if (not (string/blank? input))
You can’t perform that action at this time.
0 commit comments