Skip to content

Commit

Permalink
add JSON Mode support for moonshot models (#7568)
Browse files Browse the repository at this point in the history
  • Loading branch information
oiuv authored Aug 23, 2024
1 parent df69ad9 commit ad13011
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ parameter_rules:
default: 1024
min: 1
max: 128000
- 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: '0.06'
output: '0.06'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ parameter_rules:
default: 1024
min: 1
max: 32000
- 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: '0.024'
output: '0.024'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ parameter_rules:
default: 512
min: 1
max: 8192
- 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: '0.012'
output: '0.012'
Expand Down

0 comments on commit ad13011

Please sign in to comment.