forked from langgenius/dify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OCI(Oracle Cloud Infrastructure) Generative AI Service as a Model…
… Provider (langgenius#7775) Co-authored-by: Walter Jin <[email protected]> Co-authored-by: crazywoola <[email protected]> Co-authored-by: walter from vm <[email protected]>
- Loading branch information
Showing
23 changed files
with
1,679 additions
and
431 deletions.
There are no files selected for viewing
Empty file.
1 change: 1 addition & 0 deletions
1
api/core/model_runtime/model_providers/oci/_assets/icon_l_en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
api/core/model_runtime/model_providers/oci/_assets/icon_s_en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions
52
api/core/model_runtime/model_providers/oci/llm/cohere.command-r-16k.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,52 @@ | ||
model: cohere.command-r-16k | ||
label: | ||
en_US: cohere.command-r-16k v1.2 | ||
model_type: llm | ||
features: | ||
- multi-tool-call | ||
- agent-thought | ||
- stream-tool-call | ||
model_properties: | ||
mode: chat | ||
context_size: 128000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
default: 1 | ||
max: 1.0 | ||
- name: topP | ||
use_template: top_p | ||
default: 0.75 | ||
min: 0 | ||
max: 1 | ||
- name: topK | ||
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 | ||
default: 0 | ||
min: 0 | ||
max: 500 | ||
- name: presencePenalty | ||
use_template: presence_penalty | ||
min: 0 | ||
max: 1 | ||
default: 0 | ||
- name: frequencyPenalty | ||
use_template: frequency_penalty | ||
min: 0 | ||
max: 1 | ||
default: 0 | ||
- name: maxTokens | ||
use_template: max_tokens | ||
default: 600 | ||
max: 4000 | ||
pricing: | ||
input: '0.004' | ||
output: '0.004' | ||
unit: '0.0001' | ||
currency: USD |
52 changes: 52 additions & 0 deletions
52
api/core/model_runtime/model_providers/oci/llm/cohere.command-r-plus.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,52 @@ | ||
model: cohere.command-r-plus | ||
label: | ||
en_US: cohere.command-r-plus v1.2 | ||
model_type: llm | ||
features: | ||
- multi-tool-call | ||
- agent-thought | ||
- stream-tool-call | ||
model_properties: | ||
mode: chat | ||
context_size: 128000 | ||
parameter_rules: | ||
- name: temperature | ||
use_template: temperature | ||
default: 1 | ||
max: 1.0 | ||
- name: topP | ||
use_template: top_p | ||
default: 0.75 | ||
min: 0 | ||
max: 1 | ||
- name: topK | ||
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 | ||
default: 0 | ||
min: 0 | ||
max: 500 | ||
- name: presencePenalty | ||
use_template: presence_penalty | ||
min: 0 | ||
max: 1 | ||
default: 0 | ||
- name: frequencyPenalty | ||
use_template: frequency_penalty | ||
min: 0 | ||
max: 1 | ||
default: 0 | ||
- name: maxTokens | ||
use_template: max_tokens | ||
default: 600 | ||
max: 4000 | ||
pricing: | ||
input: '0.0219' | ||
output: '0.0219' | ||
unit: '0.0001' | ||
currency: USD |
Oops, something went wrong.