Skip to content

Commit

Permalink
Add channel buffer for incoming messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
whilo committed Apr 12, 2024
1 parent 8628eb4 commit fca1d77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/ie/simm/runtimes/openai.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
[taoensso.timbre :refer [debug warn]]
[ie.simm.config :refer [config]]
[clojure.core.async :refer [chan pub sub]]
[superv.async :refer [S go-try go-loop-try <? put?]]
[etaoin.api :as e]))
[superv.async :refer [S go-try go-loop-try <? put?]]))

(require-python '[openai :refer [OpenAI]])

Expand Down
2 changes: 1 addition & 1 deletion src/ie/simm/runtimes/relational_assistance.clj
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
pi (pub pub-in :type)

;; subscriptions for this runtime context
msg-ch (chan)
msg-ch (chan 1000)
_ (sub pi :ie.simm.runtimes.telegram/message msg-ch)

;; do the same in reverse for outputs from below
Expand Down

0 comments on commit fca1d77

Please sign in to comment.