Skip to content

Commit ed3ea85

Browse files
feat: add Mistral API parameters
1 parent 4e16137 commit ed3ea85

13 files changed

Lines changed: 1014 additions & 0 deletions
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json
2+
provider: mistral
3+
authType: api_key
4+
model: codestral-latest
5+
params:
6+
- path: max_tokens
7+
type: integer
8+
label: Max tokens
9+
description: Maximum number of tokens to generate in the completion.
10+
range:
11+
min: 1
12+
group: generation_length
13+
- path: stop
14+
type: string
15+
label: Stop sequence
16+
description: Stops generation when this string is detected.
17+
group: generation_length
18+
- path: temperature
19+
type: number
20+
label: Temperature
21+
description: Controls randomness. Lower values make outputs more focused; higher values make them more varied.
22+
range:
23+
min: 0
24+
max: 1.5
25+
step: 0.1
26+
group: sampling
27+
- path: top_p
28+
type: number
29+
label: Top P
30+
description: Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.
31+
default: 1
32+
range:
33+
min: 0
34+
max: 1
35+
step: 0.01
36+
group: sampling
37+
- path: random_seed
38+
type: integer
39+
label: Random seed
40+
description: Seed used for deterministic sampling when reproducible outputs are desired.
41+
range:
42+
min: 0
43+
group: sampling
44+
- path: presence_penalty
45+
type: number
46+
label: Presence penalty
47+
description: Penalizes repeated words or phrases to encourage a wider variety of generated content.
48+
default: 0
49+
range:
50+
min: -2
51+
max: 2
52+
step: 0.1
53+
group: sampling
54+
- path: frequency_penalty
55+
type: number
56+
label: Frequency penalty
57+
description: Penalizes words based on how often they already appear in the generated text.
58+
default: 0
59+
range:
60+
min: -2
61+
max: 2
62+
step: 0.1
63+
group: sampling
64+
- path: response_format.type
65+
type: enum
66+
label: Response format
67+
description: Controls whether the model returns normal text or JSON mode output.
68+
default: text
69+
values:
70+
- text
71+
- json_object
72+
group: output_format
73+
- path: safe_prompt
74+
type: boolean
75+
label: Safe prompt
76+
description: Controls whether Mistral injects its safety prompt before the conversation.
77+
default: false
78+
group: provider_metadata

models/mistral/devstral-2512.yaml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json
2+
provider: mistral
3+
authType: api_key
4+
model: devstral-2512
5+
params:
6+
- path: max_tokens
7+
type: integer
8+
label: Max tokens
9+
description: Maximum number of tokens to generate in the completion.
10+
range:
11+
min: 1
12+
group: generation_length
13+
- path: stop
14+
type: string
15+
label: Stop sequence
16+
description: Stops generation when this string is detected.
17+
group: generation_length
18+
- path: temperature
19+
type: number
20+
label: Temperature
21+
description: Controls randomness. Lower values make outputs more focused; higher values make them more varied.
22+
range:
23+
min: 0
24+
max: 1.5
25+
step: 0.1
26+
group: sampling
27+
- path: top_p
28+
type: number
29+
label: Top P
30+
description: Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.
31+
default: 1
32+
range:
33+
min: 0
34+
max: 1
35+
step: 0.01
36+
group: sampling
37+
- path: random_seed
38+
type: integer
39+
label: Random seed
40+
description: Seed used for deterministic sampling when reproducible outputs are desired.
41+
range:
42+
min: 0
43+
group: sampling
44+
- path: presence_penalty
45+
type: number
46+
label: Presence penalty
47+
description: Penalizes repeated words or phrases to encourage a wider variety of generated content.
48+
default: 0
49+
range:
50+
min: -2
51+
max: 2
52+
step: 0.1
53+
group: sampling
54+
- path: frequency_penalty
55+
type: number
56+
label: Frequency penalty
57+
description: Penalizes words based on how often they already appear in the generated text.
58+
default: 0
59+
range:
60+
min: -2
61+
max: 2
62+
step: 0.1
63+
group: sampling
64+
- path: response_format.type
65+
type: enum
66+
label: Response format
67+
description: Controls whether the model returns normal text or JSON mode output.
68+
default: text
69+
values:
70+
- text
71+
- json_object
72+
group: output_format
73+
- path: safe_prompt
74+
type: boolean
75+
label: Safe prompt
76+
description: Controls whether Mistral injects its safety prompt before the conversation.
77+
default: false
78+
group: provider_metadata
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json
2+
provider: mistral
3+
authType: api_key
4+
model: devstral-latest
5+
params:
6+
- path: max_tokens
7+
type: integer
8+
label: Max tokens
9+
description: Maximum number of tokens to generate in the completion.
10+
range:
11+
min: 1
12+
group: generation_length
13+
- path: stop
14+
type: string
15+
label: Stop sequence
16+
description: Stops generation when this string is detected.
17+
group: generation_length
18+
- path: temperature
19+
type: number
20+
label: Temperature
21+
description: Controls randomness. Lower values make outputs more focused; higher values make them more varied.
22+
range:
23+
min: 0
24+
max: 1.5
25+
step: 0.1
26+
group: sampling
27+
- path: top_p
28+
type: number
29+
label: Top P
30+
description: Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.
31+
default: 1
32+
range:
33+
min: 0
34+
max: 1
35+
step: 0.01
36+
group: sampling
37+
- path: random_seed
38+
type: integer
39+
label: Random seed
40+
description: Seed used for deterministic sampling when reproducible outputs are desired.
41+
range:
42+
min: 0
43+
group: sampling
44+
- path: presence_penalty
45+
type: number
46+
label: Presence penalty
47+
description: Penalizes repeated words or phrases to encourage a wider variety of generated content.
48+
default: 0
49+
range:
50+
min: -2
51+
max: 2
52+
step: 0.1
53+
group: sampling
54+
- path: frequency_penalty
55+
type: number
56+
label: Frequency penalty
57+
description: Penalizes words based on how often they already appear in the generated text.
58+
default: 0
59+
range:
60+
min: -2
61+
max: 2
62+
step: 0.1
63+
group: sampling
64+
- path: response_format.type
65+
type: enum
66+
label: Response format
67+
description: Controls whether the model returns normal text or JSON mode output.
68+
default: text
69+
values:
70+
- text
71+
- json_object
72+
group: output_format
73+
- path: safe_prompt
74+
type: boolean
75+
label: Safe prompt
76+
description: Controls whether Mistral injects its safety prompt before the conversation.
77+
default: false
78+
group: provider_metadata
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json
2+
provider: mistral
3+
authType: api_key
4+
model: magistral-medium-latest
5+
params:
6+
- path: max_tokens
7+
type: integer
8+
label: Max tokens
9+
description: Maximum number of tokens to generate in the completion.
10+
range:
11+
min: 1
12+
group: generation_length
13+
- path: stop
14+
type: string
15+
label: Stop sequence
16+
description: Stops generation when this string is detected.
17+
group: generation_length
18+
- path: temperature
19+
type: number
20+
label: Temperature
21+
description: Controls randomness. Lower values make outputs more focused; higher values make them more varied.
22+
range:
23+
min: 0
24+
max: 1.5
25+
step: 0.1
26+
group: sampling
27+
- path: top_p
28+
type: number
29+
label: Top P
30+
description: Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.
31+
default: 1
32+
range:
33+
min: 0
34+
max: 1
35+
step: 0.01
36+
group: sampling
37+
- path: random_seed
38+
type: integer
39+
label: Random seed
40+
description: Seed used for deterministic sampling when reproducible outputs are desired.
41+
range:
42+
min: 0
43+
group: sampling
44+
- path: presence_penalty
45+
type: number
46+
label: Presence penalty
47+
description: Penalizes repeated words or phrases to encourage a wider variety of generated content.
48+
default: 0
49+
range:
50+
min: -2
51+
max: 2
52+
step: 0.1
53+
group: sampling
54+
- path: frequency_penalty
55+
type: number
56+
label: Frequency penalty
57+
description: Penalizes words based on how often they already appear in the generated text.
58+
default: 0
59+
range:
60+
min: -2
61+
max: 2
62+
step: 0.1
63+
group: sampling
64+
- path: response_format.type
65+
type: enum
66+
label: Response format
67+
description: Controls whether the model returns normal text or JSON mode output.
68+
default: text
69+
values:
70+
- text
71+
- json_object
72+
group: output_format
73+
- path: safe_prompt
74+
type: boolean
75+
label: Safe prompt
76+
description: Controls whether Mistral injects its safety prompt before the conversation.
77+
default: false
78+
group: provider_metadata
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json
2+
provider: mistral
3+
authType: api_key
4+
model: magistral-small-latest
5+
params:
6+
- path: max_tokens
7+
type: integer
8+
label: Max tokens
9+
description: Maximum number of tokens to generate in the completion.
10+
range:
11+
min: 1
12+
group: generation_length
13+
- path: stop
14+
type: string
15+
label: Stop sequence
16+
description: Stops generation when this string is detected.
17+
group: generation_length
18+
- path: temperature
19+
type: number
20+
label: Temperature
21+
description: Controls randomness. Lower values make outputs more focused; higher values make them more varied.
22+
range:
23+
min: 0
24+
max: 1.5
25+
step: 0.1
26+
group: sampling
27+
- path: top_p
28+
type: number
29+
label: Top P
30+
description: Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.
31+
default: 1
32+
range:
33+
min: 0
34+
max: 1
35+
step: 0.01
36+
group: sampling
37+
- path: random_seed
38+
type: integer
39+
label: Random seed
40+
description: Seed used for deterministic sampling when reproducible outputs are desired.
41+
range:
42+
min: 0
43+
group: sampling
44+
- path: presence_penalty
45+
type: number
46+
label: Presence penalty
47+
description: Penalizes repeated words or phrases to encourage a wider variety of generated content.
48+
default: 0
49+
range:
50+
min: -2
51+
max: 2
52+
step: 0.1
53+
group: sampling
54+
- path: frequency_penalty
55+
type: number
56+
label: Frequency penalty
57+
description: Penalizes words based on how often they already appear in the generated text.
58+
default: 0
59+
range:
60+
min: -2
61+
max: 2
62+
step: 0.1
63+
group: sampling
64+
- path: response_format.type
65+
type: enum
66+
label: Response format
67+
description: Controls whether the model returns normal text or JSON mode output.
68+
default: text
69+
values:
70+
- text
71+
- json_object
72+
group: output_format
73+
- path: safe_prompt
74+
type: boolean
75+
label: Safe prompt
76+
description: Controls whether Mistral injects its safety prompt before the conversation.
77+
default: false
78+
group: provider_metadata

0 commit comments

Comments
 (0)