Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wkok committed Jan 14, 2024
1 parent 69d3171 commit 40b6e4c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions test/wkok/openai_clojure/api_integration_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,6 @@
(:require [clojure.test :refer [deftest is testing]]
[wkok.openai-clojure.api :as api]))

(deftest list-models
(testing "lists the davinci model"
(is (= "davinci"
(->> (api/list-models)
:data
(some #(when (= "davinci" (:id %)) (:id %))))))))

(deftest create-completion
(testing "creates a simple completion"
(is (contains? (api/create-completion {:model "text-davinci-003"
:prompt "Say this is a test"
:max_tokens 7
:temperature 0})
:choices))))

(deftest create-chat-completion
(testing "creates a simple chat completion"
(is (contains? (api/create-chat-completion {:model "gpt-3.5-turbo"
Expand Down

0 comments on commit 40b6e4c

Please sign in to comment.