Skip to content

Commit 72cf19e

Browse files
author
Bruce Hauman
committed
Add Gemini 3 and 3.1 model configurations and aliases
- Add gemini-3-flash, gemini-3-pro, gemini-3.1-flash-lite, gemini-3.1-pro - Update flash/gemini-pro aliases to point to latest 3.1 models - 48 total built-in models
1 parent 521f7e5 commit 72cf19e

File tree

3 files changed

+32
-6
lines changed

3 files changed

+32
-6
lines changed

doc/model-configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ If a model key is not found in your custom configuration, the system automatical
230230

231231
## Built-in Models
232232

233-
The system includes 44 pre-configured models that can be used without configuration:
233+
The system includes 48 pre-configured models that can be used without configuration:
234234

235235
### OpenAI
236236
- `:openai/gpt-4o`
@@ -249,6 +249,8 @@ The system includes 44 pre-configured models that can be used without configurat
249249
- `:google/gemini-2-5-flash`
250250
- `:google/gemini-2-5-flash-reasoning`
251251
- `:google/gemini-2-5-pro-reasoning`
252+
- `:google/gemini-3-flash`, `:google/gemini-3-pro`
253+
- `:google/gemini-3-1-flash-lite`, `:google/gemini-3-1-pro`
252254

253255
### Anthropic
254256
- `:anthropic/claude-opus-4-6`, `:anthropic/claude-opus-4-6-reasoning`

src/clojure_mcp/agent/langchain/model.clj

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,22 @@
185185
{:model-name "gemini-2.5-pro"
186186
:thinking thinking-base})
187187

188+
:google/gemini-3-flash
189+
(merge model-base
190+
{:model-name "gemini-3-flash-preview"})
191+
192+
:google/gemini-3-pro
193+
(merge model-base
194+
{:model-name "gemini-3-pro-preview"})
195+
196+
:google/gemini-3-1-flash-lite
197+
(merge model-base
198+
{:model-name "gemini-3.1-flash-lite-preview"})
199+
200+
:google/gemini-3-1-pro
201+
(merge model-base
202+
{:model-name "gemini-3.1-pro-preview"})
203+
188204
;; Anthropic Models
189205
:anthropic/claude-opus-4-1
190206
(merge model-base
@@ -267,10 +283,14 @@
267283
;; Anthropic reasoning aliases
268284
:sonnet-reasoning :anthropic/claude-sonnet-4-6-reasoning
269285
:opus-reasoning :anthropic/claude-opus-4-6-reasoning
270-
;; Google aliases
271-
:flash :google/gemini-2-5-flash
272-
:flash-lite :google/gemini-2-5-flash-lite
273-
:gemini-pro :google/gemini-2-5-pro
286+
;; Google aliases - latest points to 3.1
287+
:flash :google/gemini-3-1-flash-lite
288+
:flash-lite :google/gemini-3-1-flash-lite
289+
:gemini-pro :google/gemini-3-1-pro
290+
:gemini-3-1-pro :google/gemini-3-1-pro
291+
:gemini-3-1-flash-lite :google/gemini-3-1-flash-lite
292+
:gemini-3-flash :google/gemini-3-flash
293+
:gemini-3-pro :google/gemini-3-pro
274294
:flash-reasoning :google/gemini-2-5-flash-reasoning
275295
:gemini-pro-reasoning :google/gemini-2-5-pro-reasoning
276296
;; OpenAI aliases

test/clojure_mcp/agent/langchain/model_test.clj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
(is (contains? (set models) :google/gemini-2-5-flash))
4949
(is (contains? (set models) :google/gemini-2-5-flash-reasoning))
5050
(is (contains? (set models) :google/gemini-2-5-pro-reasoning))
51+
(is (contains? (set models) :google/gemini-3-flash))
52+
(is (contains? (set models) :google/gemini-3-pro))
53+
(is (contains? (set models) :google/gemini-3-1-flash-lite))
54+
(is (contains? (set models) :google/gemini-3-1-pro))
5155
;; Anthropic models
5256
(is (contains? (set models) :anthropic/claude-opus-4))
5357
(is (contains? (set models) :anthropic/claude-opus-4-reasoning))
@@ -62,7 +66,7 @@
6266
(is (contains? (set models) :anthropic/claude-sonnet-4-6))
6367
(is (contains? (set models) :anthropic/claude-sonnet-4-6-reasoning))
6468
(is (contains? (set models) :anthropic/claude-haiku-4-5))
65-
(is (= 44 (count models))))))
69+
(is (= 48 (count models))))))
6670

6771
(deftest test-get-provider
6872
(testing "Provider extraction from model keys"

0 commit comments

Comments
 (0)