-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add o3-mini and o3-mini-2025-01-31 model variants
- Loading branch information
Showing
7 changed files
with
180 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
api/core/model_runtime/model_providers/openai/llm/o3-mini-2025-01-31.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
model: o3-mini-2025-01-31 | ||
label: | ||
zh_Hans: o3-mini-2025-01-31 | ||
en_US: o3-mini-2025-01-31 | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
model_properties: | ||
mode: chat | ||
context_size: 200000 | ||
parameter_rules: | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 100000 | ||
min: 1 | ||
max: 100000 | ||
- name: response_format | ||
label: | ||
zh_Hans: 回复格式 | ||
en_US: response_format | ||
type: string | ||
help: | ||
zh_Hans: 指定模型必须输出的格式 | ||
en_US: specifying the format that the model must output | ||
required: false | ||
options: | ||
- text | ||
- json_object | ||
pricing: | ||
input: '1.10' | ||
output: '4.40' | ||
unit: '0.000001' | ||
currency: USD |
33 changes: 33 additions & 0 deletions
33
api/core/model_runtime/model_providers/openai/llm/o3-mini.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
model: o3-mini | ||
label: | ||
zh_Hans: o3-mini | ||
en_US: o3-mini | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
model_properties: | ||
mode: chat | ||
context_size: 200000 | ||
parameter_rules: | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 100000 | ||
min: 1 | ||
max: 100000 | ||
- name: response_format | ||
label: | ||
zh_Hans: 回复格式 | ||
en_US: response_format | ||
type: string | ||
help: | ||
zh_Hans: 指定模型必须输出的格式 | ||
en_US: specifying the format that the model must output | ||
required: false | ||
options: | ||
- text | ||
- json_object | ||
pricing: | ||
input: '1.10' | ||
output: '4.40' | ||
unit: '0.000001' | ||
currency: USD |
2 changes: 2 additions & 0 deletions
2
api/core/model_runtime/model_providers/openrouter/llm/_position.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
api/core/model_runtime/model_providers/openrouter/llm/o3-mini-2025-01-31.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
model: openai/o3-mini-2025-01-31 | ||
label: | ||
en_US: o3-mini-2025-01-31 | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
model_properties: | ||
mode: chat | ||
context_size: 200000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
- name: top_p | ||
use_template: top_p | ||
- name: top_k | ||
label: | ||
zh_Hans: 取样数量 | ||
en_US: Top k | ||
type: int | ||
help: | ||
zh_Hans: 仅从每个后续标记的前 K 个选项中采样。 | ||
en_US: Only sample from the top K options for each subsequent token. | ||
required: false | ||
- name: presence_penalty | ||
use_template: presence_penalty | ||
- name: frequency_penalty | ||
use_template: frequency_penalty | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 512 | ||
min: 1 | ||
max: 100000 | ||
- name: response_format | ||
label: | ||
zh_Hans: 回复格式 | ||
en_US: response_format | ||
type: string | ||
help: | ||
zh_Hans: 指定模型必须输出的格式 | ||
en_US: specifying the format that the model must output | ||
required: false | ||
options: | ||
- text | ||
- json_object | ||
pricing: | ||
input: "1.10" | ||
output: "4.40" | ||
unit: "0.000001" | ||
currency: USD |
49 changes: 49 additions & 0 deletions
49
api/core/model_runtime/model_providers/openrouter/llm/o3-mini.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
model: openai/o3-mini | ||
label: | ||
en_US: o3-mini | ||
model_type: llm | ||
features: | ||
- agent-thought | ||
model_properties: | ||
mode: chat | ||
context_size: 200000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
- name: top_p | ||
use_template: top_p | ||
- name: top_k | ||
label: | ||
zh_Hans: 取样数量 | ||
en_US: Top k | ||
type: int | ||
help: | ||
zh_Hans: 仅从每个后续标记的前 K 个选项中采样。 | ||
en_US: Only sample from the top K options for each subsequent token. | ||
required: false | ||
- name: presence_penalty | ||
use_template: presence_penalty | ||
- name: frequency_penalty | ||
use_template: frequency_penalty | ||
- name: max_tokens | ||
use_template: max_tokens | ||
default: 512 | ||
min: 1 | ||
max: 100000 | ||
- name: response_format | ||
label: | ||
zh_Hans: 回复格式 | ||
en_US: response_format | ||
type: string | ||
help: | ||
zh_Hans: 指定模型必须输出的格式 | ||
en_US: specifying the format that the model must output | ||
required: false | ||
options: | ||
- text | ||
- json_object | ||
pricing: | ||
input: "1.10" | ||
output: "4.40" | ||
unit: "0.000001" | ||
currency: USD |