@@ -49,9 +49,9 @@ def create(
4949 * ,
5050 model : Literal ["kanon-2-embedder" ],
5151 texts : Union [SequenceNotStr [str ], str ],
52- dimensions : Optional [int ] | Omit = omit ,
53- overflow_strategy : Optional [Literal ["drop_end" ]] | Omit = omit ,
5452 task : Optional [Literal ["retrieval/query" , "retrieval/document" ]] | Omit = omit ,
53+ overflow_strategy : Optional [Literal ["drop_end" ]] | Omit = omit ,
54+ dimensions : Optional [int ] | Omit = omit ,
5555 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5656 # The extra values given here take precedence over values defined on the client or passed to this method.
5757 extra_headers : Headers | None = None ,
@@ -72,7 +72,13 @@ def create(
7272
7373 No more than 128 texts can be embedded in a single request.
7474
75- dimensions: A whole number greater than or equal to 1.
75+ task: The task the embeddings will be used for.
76+
77+ `retrieval/query` is meant for queries and statements, and `retrieval/document`
78+ is meant for anything to be retrieved using query embeddings.
79+
80+ If `null`, which is the default setting, embeddings will not be optimized for
81+ any particular task.
7682
7783 overflow_strategy: The strategy to employ when content exceeds the model's maximum input length.
7884
@@ -82,13 +88,7 @@ def create(
8288 If `null`, an error will be raised if any content exceeds the model's maximum
8389 input length.
8490
85- task: The task the embeddings will be used for.
86-
87- `retrieval/query` is meant for queries and statements, and `retrieval/document`
88- is meant for anything to be retrieved using query embeddings.
89-
90- If `null`, which is the default setting, embeddings will not be optimized for
91- any particular task.
91+ dimensions: A whole number greater than or equal to 1.
9292
9393 extra_headers: Send extra headers
9494
@@ -104,9 +104,9 @@ def create(
104104 {
105105 "model" : model ,
106106 "texts" : texts ,
107- "dimensions" : dimensions ,
108- "overflow_strategy" : overflow_strategy ,
109107 "task" : task ,
108+ "overflow_strategy" : overflow_strategy ,
109+ "dimensions" : dimensions ,
110110 },
111111 embedding_create_params .EmbeddingCreateParams ,
112112 ),
@@ -142,9 +142,9 @@ async def create(
142142 * ,
143143 model : Literal ["kanon-2-embedder" ],
144144 texts : Union [SequenceNotStr [str ], str ],
145- dimensions : Optional [int ] | Omit = omit ,
146- overflow_strategy : Optional [Literal ["drop_end" ]] | Omit = omit ,
147145 task : Optional [Literal ["retrieval/query" , "retrieval/document" ]] | Omit = omit ,
146+ overflow_strategy : Optional [Literal ["drop_end" ]] | Omit = omit ,
147+ dimensions : Optional [int ] | Omit = omit ,
148148 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
149149 # The extra values given here take precedence over values defined on the client or passed to this method.
150150 extra_headers : Headers | None = None ,
@@ -165,7 +165,13 @@ async def create(
165165
166166 No more than 128 texts can be embedded in a single request.
167167
168- dimensions: A whole number greater than or equal to 1.
168+ task: The task the embeddings will be used for.
169+
170+ `retrieval/query` is meant for queries and statements, and `retrieval/document`
171+ is meant for anything to be retrieved using query embeddings.
172+
173+ If `null`, which is the default setting, embeddings will not be optimized for
174+ any particular task.
169175
170176 overflow_strategy: The strategy to employ when content exceeds the model's maximum input length.
171177
@@ -175,13 +181,7 @@ async def create(
175181 If `null`, an error will be raised if any content exceeds the model's maximum
176182 input length.
177183
178- task: The task the embeddings will be used for.
179-
180- `retrieval/query` is meant for queries and statements, and `retrieval/document`
181- is meant for anything to be retrieved using query embeddings.
182-
183- If `null`, which is the default setting, embeddings will not be optimized for
184- any particular task.
184+ dimensions: A whole number greater than or equal to 1.
185185
186186 extra_headers: Send extra headers
187187
@@ -197,9 +197,9 @@ async def create(
197197 {
198198 "model" : model ,
199199 "texts" : texts ,
200- "dimensions" : dimensions ,
201- "overflow_strategy" : overflow_strategy ,
202200 "task" : task ,
201+ "overflow_strategy" : overflow_strategy ,
202+ "dimensions" : dimensions ,
203203 },
204204 embedding_create_params .EmbeddingCreateParams ,
205205 ),
0 commit comments