@@ -30,6 +30,7 @@ def create(
3030 input : List [EmbeddingInputParam ],
3131 model : str ,
3232 encoding_format : Literal ["float" , "base64" ] = "float" ,
33+ dimensions : int | None = None ,
3334 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
3435 # The extra values given here take precedence over values defined on the client or passed to this method.
3536 extra_headers : Headers | None = None ,
@@ -43,6 +44,7 @@ def create(
4344 "input" : input ,
4445 "model" : model ,
4546 "encoding_format" : encoding_format ,
47+ "dimensions" : dimensions ,
4648 },
4749 options = make_request_options (
4850 extra_headers = extra_headers ,
@@ -66,6 +68,7 @@ async def create(
6668 input : List [EmbeddingInputParam ],
6769 model : str ,
6870 encoding_format : Literal ["float" , "base64" ] = "float" ,
71+ dimensions : int | None = None ,
6972 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7073 # The extra values given here take precedence over values defined on the client or passed to this method.
7174 extra_headers : Headers | None = None ,
@@ -79,6 +82,7 @@ async def create(
7982 "input" : input ,
8083 "model" : model ,
8184 "encoding_format" : encoding_format ,
85+ "dimensions" : dimensions ,
8286 },
8387 options = make_request_options (
8488 extra_headers = extra_headers ,
0 commit comments