Skip to content

Commit

Permalink
remove some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Jul 31, 2024
1 parent 5a93316 commit 6e14e97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 53 deletions.
45 changes: 1 addition & 44 deletions calcit.cirru

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions compact.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,13 @@
div ({})
comp-md-block (:answer state) ({})
when dev? $ comp-reel (>> states :reel) reel ({})
|gemini-model $ %{} :CodeEntry (:doc |)
:code $ quote
def gemini-model $ let
ai $ new GoogleGenerativeAI (js/localStorage.getItem "\"gemini-key")
model $ .!getGenerativeModel ai
js-object $ :model "\"gemini-1.0-pro"
, model
|submit-message! $ %{} :CodeEntry (:doc |)
:code $ quote
defn submit-message! (cursor state d!) (hint-fn async)
d! cursor $ -> state (assoc :answer nil) (assoc :loading? true)
let
result $ js-await
.!post axios "\"https://sf.chenyong.life/v1beta/models/gemini-1.0-pro:generateContent"
.!post axios "\"https://sf.chenyong.life/v1beta/models/gemini-1.5-pro:generateContent"
js-object $ :contents
js-array $ js-object
:parts $ js-array
Expand All @@ -86,7 +79,6 @@
respo.comp.space :refer $ =<
reel.comp.reel :refer $ comp-reel
app.config :refer $ dev?
"\"@google/generative-ai" :refer $ GoogleGenerativeAI
"\"axios" :default axios
respo-md.comp.md :refer $ comp-md-block
|app.config $ %{} :FileEntry
Expand Down

0 comments on commit 6e14e97

Please sign in to comment.