Skip to content

Commit 0ab924f

Browse files
committed
Update deps edn and pom.xml
1 parent c3e2726 commit 0ab924f

File tree

3 files changed

+42
-20
lines changed

3 files changed

+42
-20
lines changed

core/deps.edn

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
org.uncomplicate/clojure-sound {:mvn/version "0.3.0"}
44
com.taoensso/telemere {:mvn/version "1.0.0-RC1"}
55
metosin/malli {:mvn/version "0.17.0"}
6-
org.clojure/core.async {:git/sha "cfb53ac7e48dbcf197b700c62bdd429675fa77b2" :git/url "https://github.com/clojure/core.async"}
6+
org.clojure/core.async {:git/sha "0529d79f1b73a4788567f9b571f8b423657bb409" :git/url "https://github.com/clojure/core.async"}
77
metosin/jsonista {:mvn/version "0.3.8"}
88
com.microsoft.onnxruntime/onnxruntime {:mvn/version "1.20.0"}
99
com.microsoft.onnxruntime/onnxruntime_gpu {:mvn/version "1.20.0"}
1010
org.clojure/java.data {:mvn/version "1.2.107"}
11-
ring/ring-core {:mvn/version "1.13.0"}
12-
hato/hato {:mvn/version "1.0.0"}
13-
better-cond/better-cond {:mvn/version "2.1.5"}
14-
net.clojars.wkok/openai-clojure {:mvn/version "0.22.0"}}
11+
hato/hato {:mvn/version "1.0.0"}}
1512
:aliases
1613
{:build {:deps {io.github.clojure/tools.build {:mvn/version "0.9.4"}
1714
slipset/deps-deploy {:mvn/version "0.2.1"}}
@@ -34,6 +31,7 @@
3431
lambdaisland/kaocha-junit-xml {:mvn/version "0.0.76"}}}
3532
:with-examples {:extra-deps {org.clojure/data.xml {:mvn/version "0.0.8"}
3633
ring/ring-jetty-adapter {:mvn/version "1.13.0"}
34+
ring/ring-core {:mvn/version "1.13.0"}
3735
metosin/reitit {:mvn/version "0.7.2"}}
3836
:extra-paths ["../examples/src"]}
3937
:clj-kondo {:replace-deps {clj-kondo/clj-kondo {:mvn/version "RELEASE"}}

core/pom.xml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.shipclojure</groupId>
55
<artifactId>voice-fn</artifactId>
6-
<version>0.1.0-SNAPSHOT</version>
6+
<version>0.1.0-alfa</version>
77
<name>shipclojure/voice-fn</name>
88
<description>A Clojure framework for building real-time voice-enabled AI applications. voice-fn handles the orchestration of speech recognition, audio processing, and AI service integration with the elegance of functional programming.</description>
99
<url>https://github.com/shipclojure/voice-fn</url>
@@ -22,38 +22,53 @@
2222
<url>https://github.com/shipclojure/voice-fn</url>
2323
<connection>scm:git:git://github.com/shipclojure/voice-fn.git</connection>
2424
<developerConnection>scm:git:ssh://git@github.com/shipclojure/voice-fn.git</developerConnection>
25-
<tag>v0.1.0-SNAPSHOT</tag>
25+
<tag>v0.1.0-alfa</tag>
2626
</scm>
2727
<dependencies>
28+
<dependency>
29+
<groupId>com.microsoft.onnxruntime</groupId>
30+
<artifactId>onnxruntime_gpu</artifactId>
31+
<version>1.20.0</version>
32+
</dependency>
2833
<dependency>
2934
<groupId>org.clojure</groupId>
3035
<artifactId>clojure</artifactId>
3136
<version>1.12.0</version>
3237
</dependency>
38+
<dependency>
39+
<groupId>hato</groupId>
40+
<artifactId>hato</artifactId>
41+
<version>1.0.0</version>
42+
</dependency>
43+
<dependency>
44+
<groupId>com.microsoft.onnxruntime</groupId>
45+
<artifactId>onnxruntime</artifactId>
46+
<version>1.20.0</version>
47+
</dependency>
3348
<dependency>
3449
<groupId>org.uncomplicate</groupId>
3550
<artifactId>clojure-sound</artifactId>
3651
<version>0.3.0</version>
3752
</dependency>
3853
<dependency>
39-
<groupId>com.taoensso</groupId>
40-
<artifactId>telemere</artifactId>
41-
<version>1.0.0-RC1</version>
42-
</dependency>
43-
<dependency>
44-
<groupId>org.clojure</groupId>
45-
<artifactId>core.async</artifactId>
46-
<version>1.7.701</version>
54+
<groupId>metosin</groupId>
55+
<artifactId>malli</artifactId>
56+
<version>0.17.0</version>
4757
</dependency>
4858
<dependency>
4959
<groupId>metosin</groupId>
5060
<artifactId>jsonista</artifactId>
5161
<version>0.3.8</version>
5262
</dependency>
5363
<dependency>
54-
<groupId>ring</groupId>
55-
<artifactId>ring-core</artifactId>
56-
<version>1.13.0</version>
64+
<groupId>org.clojure</groupId>
65+
<artifactId>java.data</artifactId>
66+
<version>1.2.107</version>
67+
</dependency>
68+
<dependency>
69+
<groupId>com.taoensso</groupId>
70+
<artifactId>telemere</artifactId>
71+
<version>1.0.0-RC1</version>
5772
</dependency>
5873
</dependencies>
5974
<build>
@@ -65,8 +80,8 @@
6580
<url>https://repo.clojars.org/</url>
6681
</repository>
6782
<repository>
68-
<id>sonatype</id>
69-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
83+
<id>cognitect-dev-tools</id>
84+
<url>https://dev-tools.cognitect.com/maven/releases/</url>
7085
</repository>
7186
</repositories>
7287
<distributionManagement>

core/src/voice_fn/processors/openai.clj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@
3838
:model model}
3939
tools (assoc :tools tools)))}))
4040

41+
(comment
42+
(require '[voice-fn.secrets :refer [secret]])
43+
(normal-chat-completion {:messages [{:role "system", :content "You are a voice agent operating via phone. Be concise. The input you receive comes from a speech-to-text (transcription) system that isn't always efficient and may send unclear text. Ask for clarification when you're unsure what the person said."} {:role "user", :content "Hello? Do you hear me?"} {:role :assistant, :content [{:type :text, :text "Yes, I can hear you! How can I assist you today?"}]} {:role "user", :content "What's the weather in New York?"} {:role :assistant, :tool_calls [{:id "call_BzED7hmp1cbYzLBQpTB3EEqE", :type :function, :function {:name "get_weather", :arguments {:town "New York"}}}]} {:role :tool, :content [{:type :text, :text "The weather in New York is 17 degrees celsius"}], :tool_call_id "call_BzED7hmp1cbYzLBQpTB3EEqE"}]
44+
:tools [{:type :function, :function {:name "get_weather", :description "Get the current weather of a location", :parameters {:type :object, :required [:town], :properties {:town {:type :string, :description "Town for which to retrieve the current weather"}}, :additionalProperties false}, :strict true}}]
45+
:api-key (secret [:openai :new-api-sk])
46+
:model "gpt-4o-mini"})
47+
48+
,)
49+
4150
(def OpenAILLMConfigSchema
4251
[:map
4352
{:description "OpenAI LLM configuration"}

0 commit comments

Comments
 (0)