Skip to content

Commit 5e84560

Browse files
committed
Remove non used sync models code during initialize.
Fixes #100
1 parent ad3549e commit 5e84560

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Fix absolute paths being interpreted as commands. #199
6+
- Remove non used sync models code during initialize. #100
67

78
## 0.78.4
89

src/eca/handlers.clj

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,8 @@
2929
(when-not (:pureConfig config)
3030
(db/load-db-from-cache! db* config metrics))
3131

32-
;; Deprecated
33-
;; For backward compatibility,
34-
;; we now return chat config via `config/updated` notification.
35-
(models/sync-models! db* config (fn [_]))
36-
(let [db @db*]
37-
{:models (sort (keys (:models db)))
38-
:chat-behaviors (distinct (keys (:behavior config)))
39-
:chat-default-model (f.chat/default-model db config)
40-
:chat-default-behavior (config/validate-behavior-name
41-
(or (:defaultBehavior (:chat config)) ;;legacy
42-
(:defaultBehavior config))
43-
config)
44-
:chat-welcome-message (or (:welcomeMessage (:chat config)) ;;legacy
45-
(:welcomeMessage config))}))))
32+
{:chat-welcome-message (or (:welcomeMessage (:chat config)) ;;legacy
33+
(:welcomeMessage config))})))
4634

4735
(defn initialized [{:keys [db* messenger config metrics]}]
4836
(metrics/task metrics :eca/initialized

0 commit comments

Comments
 (0)