Skip to content

Commit 4e2696d

Browse files
committed
bug
1 parent ae06e2f commit 4e2696d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zhipuai/api_resource/embeddings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import httpx
66

7-
from ..core import BaseAPI
7+
from ..core import BaseAPI, Body
88
from ..core import NotGiven, NOT_GIVEN, Headers
99
from ..core import make_request_options
1010
from ..types.embeddings import EmbeddingsResponded
@@ -22,7 +22,7 @@ def create(
2222
*,
2323
input: Union[str, List[str], List[int], List[List[int]]],
2424
model: Union[str],
25-
dimensions: Union[int],
25+
dimensions: Union[int]| NotGiven = NOT_GIVEN,
2626
encoding_format: str | NotGiven = NOT_GIVEN,
2727
user: str | NotGiven = NOT_GIVEN,
2828
request_id: Optional[str] | NotGiven = NOT_GIVEN,

0 commit comments

Comments
 (0)