Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gemini 2.0 Flash experimental #256

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

## [0.69.0]

### Added
- Added a new Gemini 2.0 Flash Experimental model (`gemini-2.0-flash-exp`) and updated the alias `gem20f` with it.

## [0.68.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PromptingTools"
uuid = "670122d1-24a8-4d70-bfce-740807c42192"
authors = ["J S @svilupp and contributors"]
version = "0.68.0"
version = "0.69.0"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
6 changes: 6 additions & 0 deletions src/user_preferences.jl
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ aliases = merge(
"gem15p" => "gemini-1.5-pro-latest",
"gem15f8" => "gemini-1.5-flash-8b-latest",
"gem15f" => "gemini-1.5-flash-latest",
"gem20f" => "gemini-2.0-flash-exp",
"gemexp" => "gemini-exp-1206" # latest experimental model from December 2024
),
## Load aliases from preferences as well
Expand Down Expand Up @@ -1141,6 +1142,11 @@ registry = Dict{String, ModelSpec}(
7.5e-8,
3.0e-7,
"Gemini 1.5 Flash is a high-performance model optimized for speed while maintaining strong capabilities across various tasks. 128K context window."),
"gemini-2.0-flash-exp" => ModelSpec("gemini-2.0-flash-exp",
GoogleOpenAISchema(),
7.5e-8,
3.0e-7,
"Gemini 2.0 Flash Experimental Model from December 2024. Context 1M tokens, 8K output. See details [here](https://ai.google.dev/gemini-api/docs/models/experimental-models#use-an-experimental-model)."),
"gemini-exp-1114" => ModelSpec("gemini-exp-1114",
GoogleOpenAISchema(),
1.25e-6,
Expand Down
Loading