modelparams 0.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of modelparams might be problematic. Click here for more details.

@@ -0,0 +1,98 @@
1
+ # AUTO-GENERATED by packages/modelparams-python/scripts/codegen.ts.
2
+ # Do not edit by hand; the YAML catalog under /models is the source of truth.
3
+
4
+ # ruff: noqa: F401
5
+
6
+ from typing import Annotated, Literal
7
+
8
+ from pydantic import ConfigDict, Field
9
+ from typing_extensions import TypedDict
10
+
11
+ _PARAMS_CONFIG = ConfigDict(strict=True, extra="forbid")
12
+
13
+ SonarParams = TypedDict(
14
+ "SonarParams",
15
+ {
16
+ "max_tokens": Annotated[int, Field(ge=1, le=128000)],
17
+ "temperature": Annotated[float, Field(ge=0, le=2)],
18
+ "top_p": Annotated[float, Field(ge=0, le=1)],
19
+ "search_mode": Literal["web", "academic", "sec"],
20
+ "search_recency_filter": Literal["hour", "day", "week", "month", "year"],
21
+ "search_domain_filter": str,
22
+ "search_after_date_filter": str,
23
+ "search_before_date_filter": str,
24
+ "web_search_options.search_context_size": Literal["low", "medium", "high"],
25
+ "return_images": bool,
26
+ "return_related_questions": bool,
27
+ "disable_search": bool,
28
+ },
29
+ total=False,
30
+ )
31
+ setattr(SonarParams, "__pydantic_config__", _PARAMS_CONFIG)
32
+
33
+ Sonar_Deep_ResearchParams = TypedDict(
34
+ "Sonar_Deep_ResearchParams",
35
+ {
36
+ "max_tokens": Annotated[int, Field(ge=1, le=128000)],
37
+ "temperature": Annotated[float, Field(ge=0, le=2)],
38
+ "top_p": Annotated[float, Field(ge=0, le=1)],
39
+ "reasoning_effort": Literal["minimal", "low", "medium", "high"],
40
+ "search_mode": Literal["web", "academic", "sec"],
41
+ "search_recency_filter": Literal["hour", "day", "week", "month", "year"],
42
+ "search_domain_filter": str,
43
+ "search_after_date_filter": str,
44
+ "search_before_date_filter": str,
45
+ "web_search_options.search_context_size": Literal["low", "medium", "high"],
46
+ "return_images": bool,
47
+ "return_related_questions": bool,
48
+ },
49
+ total=False,
50
+ )
51
+ setattr(Sonar_Deep_ResearchParams, "__pydantic_config__", _PARAMS_CONFIG)
52
+
53
+ Sonar_ProParams = TypedDict(
54
+ "Sonar_ProParams",
55
+ {
56
+ "max_tokens": Annotated[int, Field(ge=1, le=128000)],
57
+ "temperature": Annotated[float, Field(ge=0, le=2)],
58
+ "top_p": Annotated[float, Field(ge=0, le=1)],
59
+ "search_mode": Literal["web", "academic", "sec"],
60
+ "search_recency_filter": Literal["hour", "day", "week", "month", "year"],
61
+ "search_domain_filter": str,
62
+ "search_after_date_filter": str,
63
+ "search_before_date_filter": str,
64
+ "web_search_options.search_context_size": Literal["low", "medium", "high"],
65
+ "return_images": bool,
66
+ "return_related_questions": bool,
67
+ "disable_search": bool,
68
+ },
69
+ total=False,
70
+ )
71
+ setattr(Sonar_ProParams, "__pydantic_config__", _PARAMS_CONFIG)
72
+
73
+ Sonar_Reasoning_ProParams = TypedDict(
74
+ "Sonar_Reasoning_ProParams",
75
+ {
76
+ "max_tokens": Annotated[int, Field(ge=1, le=128000)],
77
+ "temperature": Annotated[float, Field(ge=0, le=2)],
78
+ "top_p": Annotated[float, Field(ge=0, le=1)],
79
+ "search_mode": Literal["web", "academic", "sec"],
80
+ "search_recency_filter": Literal["hour", "day", "week", "month", "year"],
81
+ "search_domain_filter": str,
82
+ "search_after_date_filter": str,
83
+ "search_before_date_filter": str,
84
+ "web_search_options.search_context_size": Literal["low", "medium", "high"],
85
+ "return_images": bool,
86
+ "return_related_questions": bool,
87
+ "disable_search": bool,
88
+ },
89
+ total=False,
90
+ )
91
+ setattr(Sonar_Reasoning_ProParams, "__pydantic_config__", _PARAMS_CONFIG)
92
+
93
+ __all__ = [
94
+ "SonarParams",
95
+ "Sonar_Deep_ResearchParams",
96
+ "Sonar_ProParams",
97
+ "Sonar_Reasoning_ProParams",
98
+ ]
@@ -0,0 +1,28 @@
1
+ # AUTO-GENERATED by packages/modelparams-python/scripts/codegen.ts.
2
+ # Do not edit by hand; the YAML catalog under /models is the source of truth.
3
+
4
+ # ruff: noqa: F401
5
+
6
+ from typing import Annotated, Literal
7
+
8
+ from pydantic import ConfigDict, Field
9
+ from typing_extensions import TypedDict
10
+
11
+ _PARAMS_CONFIG = ConfigDict(strict=True, extra="forbid")
12
+
13
+ InklingParams = TypedDict(
14
+ "InklingParams",
15
+ {
16
+ "max_tokens": Annotated[int, Field(ge=1)],
17
+ "temperature": float,
18
+ "top_p": Annotated[float, Field(ge=0, le=1)],
19
+ "reasoning_effort": Literal["none", "minimal", "low", "medium", "high", "xhigh"],
20
+ "separate_reasoning": bool,
21
+ },
22
+ total=False,
23
+ )
24
+ setattr(InklingParams, "__pydantic_config__", _PARAMS_CONFIG)
25
+
26
+ __all__ = [
27
+ "InklingParams",
28
+ ]
@@ -0,0 +1,174 @@
1
+ # AUTO-GENERATED by packages/modelparams-python/scripts/codegen.ts.
2
+ # Do not edit by hand; the YAML catalog under /models is the source of truth.
3
+
4
+ # ruff: noqa: F401
5
+
6
+ from typing import Annotated, Literal
7
+
8
+ from pydantic import ConfigDict, Field
9
+ from typing_extensions import TypedDict
10
+
11
+ _PARAMS_CONFIG = ConfigDict(strict=True, extra="forbid")
12
+
13
+ Grok_4_20_0309_Non_ReasoningParams = TypedDict(
14
+ "Grok_4_20_0309_Non_ReasoningParams",
15
+ {
16
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
17
+ "temperature": Annotated[float, Field(ge=0, le=2)],
18
+ "top_p": Annotated[float, Field(ge=0, le=1)],
19
+ "seed": int,
20
+ "stop": str,
21
+ "response_format.type": Literal["text", "json_object", "json_schema"],
22
+ },
23
+ total=False,
24
+ )
25
+ setattr(Grok_4_20_0309_Non_ReasoningParams, "__pydantic_config__", _PARAMS_CONFIG)
26
+
27
+ Grok_4_20_0309_Non_Reasoning_SubscriptionParams = TypedDict(
28
+ "Grok_4_20_0309_Non_Reasoning_SubscriptionParams",
29
+ {
30
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
31
+ "temperature": Annotated[float, Field(ge=0, le=2)],
32
+ "top_p": Annotated[float, Field(ge=0, le=1)],
33
+ "seed": int,
34
+ "stop": str,
35
+ "response_format.type": Literal["text", "json_object", "json_schema"],
36
+ },
37
+ total=False,
38
+ )
39
+ setattr(Grok_4_20_0309_Non_Reasoning_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
40
+
41
+ Grok_4_20_0309_ReasoningParams = TypedDict(
42
+ "Grok_4_20_0309_ReasoningParams",
43
+ {
44
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
45
+ "temperature": Annotated[float, Field(ge=0, le=2)],
46
+ "top_p": Annotated[float, Field(ge=0, le=1)],
47
+ "seed": int,
48
+ "response_format.type": Literal["text", "json_object", "json_schema"],
49
+ },
50
+ total=False,
51
+ )
52
+ setattr(Grok_4_20_0309_ReasoningParams, "__pydantic_config__", _PARAMS_CONFIG)
53
+
54
+ Grok_4_20_0309_Reasoning_SubscriptionParams = TypedDict(
55
+ "Grok_4_20_0309_Reasoning_SubscriptionParams",
56
+ {
57
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
58
+ "temperature": Annotated[float, Field(ge=0, le=2)],
59
+ "top_p": Annotated[float, Field(ge=0, le=1)],
60
+ "seed": int,
61
+ "response_format.type": Literal["text", "json_object", "json_schema"],
62
+ },
63
+ total=False,
64
+ )
65
+ setattr(Grok_4_20_0309_Reasoning_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
66
+
67
+ Grok_4_20_Multi_Agent_0309Params = TypedDict(
68
+ "Grok_4_20_Multi_Agent_0309Params",
69
+ {
70
+ "max_output_tokens": Annotated[int, Field(ge=1)],
71
+ "temperature": Annotated[float, Field(ge=0, le=2)],
72
+ "top_p": Annotated[float, Field(ge=0, le=1)],
73
+ "reasoning.effort": Literal["low", "medium", "high", "xhigh"],
74
+ "text.format.type": Literal["text", "json_object", "json_schema"],
75
+ },
76
+ total=False,
77
+ )
78
+ setattr(Grok_4_20_Multi_Agent_0309Params, "__pydantic_config__", _PARAMS_CONFIG)
79
+
80
+ Grok_4_3Params = TypedDict(
81
+ "Grok_4_3Params",
82
+ {
83
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
84
+ "temperature": Annotated[float, Field(ge=0, le=2)],
85
+ "top_p": Annotated[float, Field(ge=0, le=1)],
86
+ "seed": int,
87
+ "reasoning_effort": Literal["none", "low", "medium", "high"],
88
+ "response_format.type": Literal["text", "json_object", "json_schema"],
89
+ },
90
+ total=False,
91
+ )
92
+ setattr(Grok_4_3Params, "__pydantic_config__", _PARAMS_CONFIG)
93
+
94
+ Grok_4_3_SubscriptionParams = TypedDict(
95
+ "Grok_4_3_SubscriptionParams",
96
+ {
97
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
98
+ "temperature": Annotated[float, Field(ge=0, le=2)],
99
+ "top_p": Annotated[float, Field(ge=0, le=1)],
100
+ "seed": int,
101
+ "reasoning_effort": Literal["none", "low", "medium", "high"],
102
+ "response_format.type": Literal["text", "json_object", "json_schema"],
103
+ },
104
+ total=False,
105
+ )
106
+ setattr(Grok_4_3_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
107
+
108
+ Grok_4_5Params = TypedDict(
109
+ "Grok_4_5Params",
110
+ {
111
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
112
+ "temperature": Annotated[float, Field(ge=0, le=2)],
113
+ "top_p": Annotated[float, Field(ge=0, le=1)],
114
+ "seed": int,
115
+ "reasoning_effort": Literal["none", "low", "medium", "high"],
116
+ "response_format.type": Literal["text", "json_object", "json_schema"],
117
+ },
118
+ total=False,
119
+ )
120
+ setattr(Grok_4_5Params, "__pydantic_config__", _PARAMS_CONFIG)
121
+
122
+ Grok_4_5_SubscriptionParams = TypedDict(
123
+ "Grok_4_5_SubscriptionParams",
124
+ {
125
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
126
+ "temperature": Annotated[float, Field(ge=0, le=2)],
127
+ "top_p": Annotated[float, Field(ge=0, le=1)],
128
+ "seed": int,
129
+ "reasoning_effort": Literal["none", "low", "medium", "high"],
130
+ "response_format.type": Literal["text", "json_object", "json_schema"],
131
+ },
132
+ total=False,
133
+ )
134
+ setattr(Grok_4_5_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
135
+
136
+ Grok_Build_0_1Params = TypedDict(
137
+ "Grok_Build_0_1Params",
138
+ {
139
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
140
+ "temperature": Annotated[float, Field(ge=0, le=2)],
141
+ "top_p": Annotated[float, Field(ge=0, le=1)],
142
+ "seed": int,
143
+ "response_format.type": Literal["text", "json_object", "json_schema"],
144
+ },
145
+ total=False,
146
+ )
147
+ setattr(Grok_Build_0_1Params, "__pydantic_config__", _PARAMS_CONFIG)
148
+
149
+ Grok_Build_0_1_SubscriptionParams = TypedDict(
150
+ "Grok_Build_0_1_SubscriptionParams",
151
+ {
152
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
153
+ "temperature": Annotated[float, Field(ge=0, le=2)],
154
+ "top_p": Annotated[float, Field(ge=0, le=1)],
155
+ "seed": int,
156
+ "response_format.type": Literal["text", "json_object", "json_schema"],
157
+ },
158
+ total=False,
159
+ )
160
+ setattr(Grok_Build_0_1_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
161
+
162
+ __all__ = [
163
+ "Grok_4_20_0309_Non_ReasoningParams",
164
+ "Grok_4_20_0309_Non_Reasoning_SubscriptionParams",
165
+ "Grok_4_20_0309_ReasoningParams",
166
+ "Grok_4_20_0309_Reasoning_SubscriptionParams",
167
+ "Grok_4_20_Multi_Agent_0309Params",
168
+ "Grok_4_3Params",
169
+ "Grok_4_3_SubscriptionParams",
170
+ "Grok_4_5Params",
171
+ "Grok_4_5_SubscriptionParams",
172
+ "Grok_Build_0_1Params",
173
+ "Grok_Build_0_1_SubscriptionParams",
174
+ ]
@@ -0,0 +1,59 @@
1
+ # AUTO-GENERATED by packages/modelparams-python/scripts/codegen.ts.
2
+ # Do not edit by hand; the YAML catalog under /models is the source of truth.
3
+
4
+ # ruff: noqa: F401
5
+
6
+ from typing import Annotated, Literal
7
+
8
+ from pydantic import ConfigDict, Field
9
+ from typing_extensions import TypedDict
10
+
11
+ _PARAMS_CONFIG = ConfigDict(strict=True, extra="forbid")
12
+
13
+ Mimo_V2_5Params = TypedDict(
14
+ "Mimo_V2_5Params",
15
+ {
16
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
17
+ "thinking.type": Literal["enabled", "disabled"],
18
+ "temperature": Annotated[float, Field(ge=0, le=2)],
19
+ "top_p": Annotated[float, Field(ge=0, le=1)],
20
+ "response_format.type": Literal["text", "json_object"],
21
+ },
22
+ total=False,
23
+ )
24
+ setattr(Mimo_V2_5Params, "__pydantic_config__", _PARAMS_CONFIG)
25
+
26
+ Mimo_V2_5_ProParams = TypedDict(
27
+ "Mimo_V2_5_ProParams",
28
+ {
29
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
30
+ "thinking.type": Literal["enabled", "disabled"],
31
+ "temperature": Annotated[float, Field(ge=0, le=2)],
32
+ "top_p": Annotated[float, Field(ge=0, le=1)],
33
+ "presence_penalty": Annotated[float, Field(ge=-2, le=2)],
34
+ "frequency_penalty": Annotated[float, Field(ge=-2, le=2)],
35
+ "stop": str,
36
+ "response_format.type": Literal["text", "json_object"],
37
+ },
38
+ total=False,
39
+ )
40
+ setattr(Mimo_V2_5_ProParams, "__pydantic_config__", _PARAMS_CONFIG)
41
+
42
+ Mimo_V2_5_SubscriptionParams = TypedDict(
43
+ "Mimo_V2_5_SubscriptionParams",
44
+ {
45
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
46
+ "thinking.type": Literal["enabled", "disabled"],
47
+ "temperature": Annotated[float, Field(ge=0, le=2)],
48
+ "top_p": Annotated[float, Field(ge=0, le=1)],
49
+ "response_format.type": Literal["text", "json_object"],
50
+ },
51
+ total=False,
52
+ )
53
+ setattr(Mimo_V2_5_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
54
+
55
+ __all__ = [
56
+ "Mimo_V2_5Params",
57
+ "Mimo_V2_5_ProParams",
58
+ "Mimo_V2_5_SubscriptionParams",
59
+ ]
@@ -0,0 +1,331 @@
1
+ # AUTO-GENERATED by packages/modelparams-python/scripts/codegen.ts.
2
+ # Do not edit by hand; the YAML catalog under /models is the source of truth.
3
+
4
+ # ruff: noqa: F401
5
+
6
+ from typing import Annotated, Literal
7
+
8
+ from pydantic import ConfigDict, Field
9
+ from typing_extensions import TypedDict
10
+
11
+ _PARAMS_CONFIG = ConfigDict(strict=True, extra="forbid")
12
+
13
+ Glm_4_5Params = TypedDict(
14
+ "Glm_4_5Params",
15
+ {
16
+ "max_tokens": Annotated[int, Field(ge=1)],
17
+ "temperature": Annotated[float, Field(ge=0, le=1)],
18
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
19
+ "do_sample": bool,
20
+ "thinking.type": Literal["enabled", "disabled"],
21
+ "response_format.type": Literal["text", "json_object"],
22
+ },
23
+ total=False,
24
+ )
25
+ setattr(Glm_4_5Params, "__pydantic_config__", _PARAMS_CONFIG)
26
+
27
+ Glm_4_5_AirParams = TypedDict(
28
+ "Glm_4_5_AirParams",
29
+ {
30
+ "max_tokens": Annotated[int, Field(ge=1)],
31
+ "temperature": Annotated[float, Field(ge=0, le=1)],
32
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
33
+ "do_sample": bool,
34
+ "thinking.type": Literal["enabled", "disabled"],
35
+ "response_format.type": Literal["text", "json_object"],
36
+ },
37
+ total=False,
38
+ )
39
+ setattr(Glm_4_5_AirParams, "__pydantic_config__", _PARAMS_CONFIG)
40
+
41
+ Glm_4_5_Air_SubscriptionParams = TypedDict(
42
+ "Glm_4_5_Air_SubscriptionParams",
43
+ {
44
+ "max_tokens": Annotated[int, Field(ge=1)],
45
+ "temperature": Annotated[float, Field(ge=0, le=1)],
46
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
47
+ "do_sample": bool,
48
+ "thinking.type": Literal["enabled", "disabled"],
49
+ "response_format.type": Literal["text", "json_object"],
50
+ },
51
+ total=False,
52
+ )
53
+ setattr(Glm_4_5_Air_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
54
+
55
+ Glm_4_5_AirxParams = TypedDict(
56
+ "Glm_4_5_AirxParams",
57
+ {
58
+ "max_tokens": Annotated[int, Field(ge=1)],
59
+ "temperature": Annotated[float, Field(ge=0, le=1)],
60
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
61
+ "do_sample": bool,
62
+ "thinking.type": Literal["enabled", "disabled"],
63
+ "response_format.type": Literal["text", "json_object"],
64
+ },
65
+ total=False,
66
+ )
67
+ setattr(Glm_4_5_AirxParams, "__pydantic_config__", _PARAMS_CONFIG)
68
+
69
+ Glm_4_5_FlashParams = TypedDict(
70
+ "Glm_4_5_FlashParams",
71
+ {
72
+ "max_tokens": Annotated[int, Field(ge=1)],
73
+ "temperature": Annotated[float, Field(ge=0, le=1)],
74
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
75
+ "do_sample": bool,
76
+ "thinking.type": Literal["enabled", "disabled"],
77
+ "response_format.type": Literal["text", "json_object"],
78
+ },
79
+ total=False,
80
+ )
81
+ setattr(Glm_4_5_FlashParams, "__pydantic_config__", _PARAMS_CONFIG)
82
+
83
+ Glm_4_5_SubscriptionParams = TypedDict(
84
+ "Glm_4_5_SubscriptionParams",
85
+ {
86
+ "max_tokens": Annotated[int, Field(ge=1)],
87
+ "temperature": Annotated[float, Field(ge=0, le=1)],
88
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
89
+ "do_sample": bool,
90
+ "thinking.type": Literal["enabled", "disabled"],
91
+ "response_format.type": Literal["text", "json_object"],
92
+ },
93
+ total=False,
94
+ )
95
+ setattr(Glm_4_5_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
96
+
97
+ Glm_4_5_XParams = TypedDict(
98
+ "Glm_4_5_XParams",
99
+ {
100
+ "max_tokens": Annotated[int, Field(ge=1)],
101
+ "temperature": Annotated[float, Field(ge=0, le=1)],
102
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
103
+ "do_sample": bool,
104
+ "thinking.type": Literal["enabled", "disabled"],
105
+ "response_format.type": Literal["text", "json_object"],
106
+ },
107
+ total=False,
108
+ )
109
+ setattr(Glm_4_5_XParams, "__pydantic_config__", _PARAMS_CONFIG)
110
+
111
+ Glm_4_6Params = TypedDict(
112
+ "Glm_4_6Params",
113
+ {
114
+ "max_tokens": Annotated[int, Field(ge=1)],
115
+ "temperature": Annotated[float, Field(ge=0, le=1)],
116
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
117
+ "do_sample": bool,
118
+ "thinking.type": Literal["enabled", "disabled"],
119
+ "response_format.type": Literal["text", "json_object"],
120
+ },
121
+ total=False,
122
+ )
123
+ setattr(Glm_4_6Params, "__pydantic_config__", _PARAMS_CONFIG)
124
+
125
+ Glm_4_6_SubscriptionParams = TypedDict(
126
+ "Glm_4_6_SubscriptionParams",
127
+ {
128
+ "max_tokens": Annotated[int, Field(ge=1)],
129
+ "temperature": Annotated[float, Field(ge=0, le=1)],
130
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
131
+ "do_sample": bool,
132
+ "thinking.type": Literal["enabled", "disabled"],
133
+ "response_format.type": Literal["text", "json_object"],
134
+ },
135
+ total=False,
136
+ )
137
+ setattr(Glm_4_6_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
138
+
139
+ Glm_4_7Params = TypedDict(
140
+ "Glm_4_7Params",
141
+ {
142
+ "max_tokens": Annotated[int, Field(ge=1)],
143
+ "temperature": Annotated[float, Field(ge=0, le=1)],
144
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
145
+ "do_sample": bool,
146
+ "thinking.type": Literal["enabled", "disabled"],
147
+ "response_format.type": Literal["text", "json_object"],
148
+ },
149
+ total=False,
150
+ )
151
+ setattr(Glm_4_7Params, "__pydantic_config__", _PARAMS_CONFIG)
152
+
153
+ Glm_4_7_FlashParams = TypedDict(
154
+ "Glm_4_7_FlashParams",
155
+ {
156
+ "max_tokens": Annotated[int, Field(ge=1)],
157
+ "temperature": Annotated[float, Field(ge=0, le=1)],
158
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
159
+ "do_sample": bool,
160
+ "thinking.type": Literal["enabled", "disabled"],
161
+ "response_format.type": Literal["text", "json_object"],
162
+ },
163
+ total=False,
164
+ )
165
+ setattr(Glm_4_7_FlashParams, "__pydantic_config__", _PARAMS_CONFIG)
166
+
167
+ Glm_4_7_FlashxParams = TypedDict(
168
+ "Glm_4_7_FlashxParams",
169
+ {
170
+ "max_tokens": Annotated[int, Field(ge=1)],
171
+ "temperature": Annotated[float, Field(ge=0, le=1)],
172
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
173
+ "do_sample": bool,
174
+ "thinking.type": Literal["enabled", "disabled"],
175
+ "response_format.type": Literal["text", "json_object"],
176
+ },
177
+ total=False,
178
+ )
179
+ setattr(Glm_4_7_FlashxParams, "__pydantic_config__", _PARAMS_CONFIG)
180
+
181
+ Glm_4_7_SubscriptionParams = TypedDict(
182
+ "Glm_4_7_SubscriptionParams",
183
+ {
184
+ "max_tokens": Annotated[int, Field(ge=1)],
185
+ "temperature": Annotated[float, Field(ge=0, le=1)],
186
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
187
+ "do_sample": bool,
188
+ "thinking.type": Literal["enabled", "disabled"],
189
+ "response_format.type": Literal["text", "json_object"],
190
+ },
191
+ total=False,
192
+ )
193
+ setattr(Glm_4_7_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
194
+
195
+ Glm_5Params = TypedDict(
196
+ "Glm_5Params",
197
+ {
198
+ "max_tokens": Annotated[int, Field(ge=1)],
199
+ "temperature": Annotated[float, Field(ge=0, le=1)],
200
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
201
+ "do_sample": bool,
202
+ "thinking.type": Literal["enabled", "disabled"],
203
+ "response_format.type": Literal["text", "json_object"],
204
+ },
205
+ total=False,
206
+ )
207
+ setattr(Glm_5Params, "__pydantic_config__", _PARAMS_CONFIG)
208
+
209
+ Glm_5_SubscriptionParams = TypedDict(
210
+ "Glm_5_SubscriptionParams",
211
+ {
212
+ "max_tokens": Annotated[int, Field(ge=1)],
213
+ "temperature": Annotated[float, Field(ge=0, le=1)],
214
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
215
+ "do_sample": bool,
216
+ "thinking.type": Literal["enabled", "disabled"],
217
+ "response_format.type": Literal["text", "json_object"],
218
+ },
219
+ total=False,
220
+ )
221
+ setattr(Glm_5_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
222
+
223
+ Glm_5_TurboParams = TypedDict(
224
+ "Glm_5_TurboParams",
225
+ {
226
+ "max_tokens": Annotated[int, Field(ge=1)],
227
+ "temperature": Annotated[float, Field(ge=0, le=1)],
228
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
229
+ "do_sample": bool,
230
+ "thinking.type": Literal["enabled", "disabled"],
231
+ "response_format.type": Literal["text", "json_object"],
232
+ },
233
+ total=False,
234
+ )
235
+ setattr(Glm_5_TurboParams, "__pydantic_config__", _PARAMS_CONFIG)
236
+
237
+ Glm_5_Turbo_SubscriptionParams = TypedDict(
238
+ "Glm_5_Turbo_SubscriptionParams",
239
+ {
240
+ "max_tokens": Annotated[int, Field(ge=1)],
241
+ "temperature": Annotated[float, Field(ge=0, le=1)],
242
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
243
+ "do_sample": bool,
244
+ "thinking.type": Literal["enabled", "disabled"],
245
+ "response_format.type": Literal["text", "json_object"],
246
+ },
247
+ total=False,
248
+ )
249
+ setattr(Glm_5_Turbo_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
250
+
251
+ Glm_5_1Params = TypedDict(
252
+ "Glm_5_1Params",
253
+ {
254
+ "max_tokens": Annotated[int, Field(ge=1)],
255
+ "temperature": Annotated[float, Field(ge=0, le=1)],
256
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
257
+ "do_sample": bool,
258
+ "thinking.type": Literal["enabled", "disabled"],
259
+ "response_format.type": Literal["text", "json_object"],
260
+ },
261
+ total=False,
262
+ )
263
+ setattr(Glm_5_1Params, "__pydantic_config__", _PARAMS_CONFIG)
264
+
265
+ Glm_5_1_SubscriptionParams = TypedDict(
266
+ "Glm_5_1_SubscriptionParams",
267
+ {
268
+ "max_tokens": Annotated[int, Field(ge=1)],
269
+ "temperature": Annotated[float, Field(ge=0, le=1)],
270
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
271
+ "do_sample": bool,
272
+ "thinking.type": Literal["enabled", "disabled"],
273
+ "response_format.type": Literal["text", "json_object"],
274
+ },
275
+ total=False,
276
+ )
277
+ setattr(Glm_5_1_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
278
+
279
+ Glm_5_2Params = TypedDict(
280
+ "Glm_5_2Params",
281
+ {
282
+ "max_tokens": Annotated[int, Field(ge=1, le=131072)],
283
+ "temperature": Annotated[float, Field(ge=0, le=1)],
284
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
285
+ "do_sample": bool,
286
+ "thinking.type": Literal["enabled", "disabled"],
287
+ "reasoning_effort": Literal["none", "minimal", "low", "medium", "high", "xhigh", "max"],
288
+ "response_format.type": Literal["text", "json_object"],
289
+ },
290
+ total=False,
291
+ )
292
+ setattr(Glm_5_2Params, "__pydantic_config__", _PARAMS_CONFIG)
293
+
294
+ Glm_5_2_SubscriptionParams = TypedDict(
295
+ "Glm_5_2_SubscriptionParams",
296
+ {
297
+ "max_tokens": Annotated[int, Field(ge=1, le=131072)],
298
+ "temperature": Annotated[float, Field(ge=0, le=1)],
299
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
300
+ "do_sample": bool,
301
+ "thinking.type": Literal["enabled", "disabled"],
302
+ "reasoning_effort": Literal["none", "minimal", "low", "medium", "high", "xhigh", "max"],
303
+ "response_format.type": Literal["text", "json_object"],
304
+ },
305
+ total=False,
306
+ )
307
+ setattr(Glm_5_2_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
308
+
309
+ __all__ = [
310
+ "Glm_4_5Params",
311
+ "Glm_4_5_AirParams",
312
+ "Glm_4_5_Air_SubscriptionParams",
313
+ "Glm_4_5_AirxParams",
314
+ "Glm_4_5_FlashParams",
315
+ "Glm_4_5_SubscriptionParams",
316
+ "Glm_4_5_XParams",
317
+ "Glm_4_6Params",
318
+ "Glm_4_6_SubscriptionParams",
319
+ "Glm_4_7Params",
320
+ "Glm_4_7_FlashParams",
321
+ "Glm_4_7_FlashxParams",
322
+ "Glm_4_7_SubscriptionParams",
323
+ "Glm_5Params",
324
+ "Glm_5_SubscriptionParams",
325
+ "Glm_5_TurboParams",
326
+ "Glm_5_Turbo_SubscriptionParams",
327
+ "Glm_5_1Params",
328
+ "Glm_5_1_SubscriptionParams",
329
+ "Glm_5_2Params",
330
+ "Glm_5_2_SubscriptionParams",
331
+ ]