Skip to content

Commit 656165d

Browse files
committed
openai and gemini examples
1 parent 111fa40 commit 656165d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

litellm_api/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# LiteLLM. WORK IN PROGRESS
22

3-
A Clojure library for using multiple LLM providers and models. Here we test with the OpenAI APIs.
3+
An open surce Clojure library for using multiple LLM providers and models. Here we test with the OpenAI and Gemini APIs.
4+
5+
Project: https://github.com/unravel-team/litellm-clj
6+
Other useful Clojure projects by the Unravel team (not used here): https://github.com/unravel-team
7+
48

59
## Usage
610

litellm_api/test/litellm_api/core_test.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
(:require [clojure.test :refer :all]
33
[litellm.router :as router]))
44

5-
;; :available-providers #{:gemini :openrouter :mistral :anthropic :openai :ollama}
5+
;; available-providers;
6+
;; #{:gemini :openrouter :mistral :anthropic :openai :ollama}
67

78
(deftest openai-completions-test
89
(testing "OpenAI completions API with LiteLLM"
@@ -26,4 +27,4 @@
2627
(let [response (router/completion :fast
2728
{:messages [{:role :user :content "please generate a 10 word sentence"}]})]
2829
(println (router/extract-content response))
29-
(is (not (nil? response))))))
30+
(is (not (nil? response))))))

0 commit comments

Comments
 (0)