File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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"
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))))))
You can’t perform that action at this time.
0 commit comments