Skip to content

Commit

Permalink
Add Qwen models from OpenRouter API (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sixzero authored Feb 20, 2025
1 parent 4560d97 commit ffde21c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
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.72.1]

### Added
- Added Qwen models from OpenRouter API: Qwen Turbo, Plus and Max models with competitive pricing and 128K context window.

## [0.72.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.72.0"
version = "0.72.1"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
19 changes: 19 additions & 0 deletions src/user_preferences.jl
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,9 @@ aliases = merge(
"oro1m" => "openai/o1-mini",
"orcop" => "cohere/command-r-plus-08-2024",
"orco" => "cohere/command-r-08-2024",
"oqwenturbo" => "qwen/qwen-turbo",
"oqwenplus" => "qwen/qwen-plus",
"oqwenmax" => "qwen/qwen-max",
## Gemini 1.5 Models
"gem15p" => "gemini-1.5-pro-latest",
"gem15f8" => "gemini-1.5-flash-8b-latest",
Expand Down Expand Up @@ -1163,6 +1166,22 @@ registry = Dict{String, ModelSpec}(
2.5e-6,
10e-6,
"OpenRouter's hosted version of Cohere's latest and strongest model Command R Plus. 128K context, max output 4K tokens."),
"qwen/qwen-turbo" => ModelSpec("qwen/qwen-turbo",
OpenRouterOpenAISchema(),
0.05e-6,
0.2e-6,
"OpenRouter's hosted version of Qwen's latest and strongest model Qwen-Plus. 128K context, max output 8K tokens."),
"qwen/qwen-plus" => ModelSpec("qwen/qwen-plus",
OpenRouterOpenAISchema(),
0.4e-6,
1.2e-6,
"OpenRouter's hosted version of Qwen's latest and strongest model Qwen-Plus. 128K context, max output 8K tokens."),
"qwen/qwen-max" => ModelSpec("qwen/qwen-max",
OpenRouterOpenAISchema(),
1.6e-6,
6.4e-6,
"OpenRouter's hosted version of Qwen's latest and strongest model Qwen-Plus. 128K context, max output 8K tokens."),

"cohere/command-r-08-2024" => ModelSpec("cohere/command-r-08-2024",
OpenRouterOpenAISchema(),
1.5e-7,
Expand Down

0 comments on commit ffde21c

Please sign in to comment.