tamar-model-client 0.2.0__py3-none-any.whl → 0.2.2__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.
@@ -137,10 +137,12 @@ class OpenAIImagesInput(BaseModel):
137
137
  n: Optional[int] | NotGiven = NOT_GIVEN
138
138
  output_compression: Optional[int] | NotGiven = NOT_GIVEN
139
139
  output_format: Optional[Literal["png", "jpeg", "webp"]] | NotGiven = NOT_GIVEN
140
- quality: Literal["standard", "hd"] | NotGiven = NOT_GIVEN
140
+ partial_images: Optional[int] | NotGiven = NOT_GIVEN,
141
+ quality: Optional[Literal["standard", "hd", "low", "medium", "high", "auto"]] | NotGiven = NOT_GIVEN,
141
142
  response_format: Optional[Literal["url", "b64_json"]] | NotGiven = NOT_GIVEN
142
143
  size: Optional[Literal[
143
144
  "auto", "1024x1024", "1536x1024", "1024x1536", "256x256", "512x512", "1792x1024", "1024x1792"]] | NotGiven = NOT_GIVEN
145
+ stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
144
146
  style: Optional[Literal["vivid", "natural"]] | NotGiven = NOT_GIVEN
145
147
  user: str | NotGiven = NOT_GIVEN
146
148
  extra_headers: Headers | None = None
@@ -157,15 +159,18 @@ class OpenAIImagesEditInput(BaseModel):
157
159
  image: Union[FileTypes, List[FileTypes]]
158
160
  prompt: str
159
161
  background: Optional[Literal["transparent", "opaque", "auto"]] | NotGiven = NOT_GIVEN
162
+ input_fidelity: Optional[Literal["high", "low"]] | NotGiven = NOT_GIVEN,
160
163
  mask: FileTypes | NotGiven = NOT_GIVEN
161
164
  model: Union[str, ImageModel, None] | NotGiven = NOT_GIVEN
162
165
  n: Optional[int] | NotGiven = NOT_GIVEN
163
- quality: Optional[Literal["standard", "low", "medium", "high", "auto"]] | NotGiven = NOT_GIVEN
166
+ output_compression: Optional[int] | NotGiven = NOT_GIVEN,
167
+ output_format: Optional[Literal["png", "jpeg", "webp"]] | NotGiven = NOT_GIVEN,
168
+ partial_images: Optional[int] | NotGiven = NOT_GIVEN,
169
+ quality: Optional[Literal["standard", "hd", "low", "medium", "high", "auto"]] | NotGiven = NOT_GIVEN,
164
170
  response_format: Optional[Literal["url", "b64_json"]] | NotGiven = NOT_GIVEN
165
171
  size: Optional[Literal["256x256", "512x512", "1024x1024", "1536x1024", "1024x1536", "auto"]] | NotGiven = NOT_GIVEN
172
+ stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
166
173
  user: str | NotGiven = NOT_GIVEN
167
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
168
- # The extra values given here take precedence over values defined on the client or passed to this method.
169
174
  extra_headers: Headers | None = None
170
175
  extra_query: Query | None = None
171
176
  extra_body: Body | None = None
@@ -243,6 +248,11 @@ class ModelRequestInput(BaseRequest):
243
248
  image: Optional[Union[FileTypes, List[FileTypes]]] = None
244
249
  prompt: Optional[str] = None
245
250
  background: Optional[Literal["transparent", "opaque", "auto"]] | NotGiven = NOT_GIVEN
251
+ moderation: Optional[Literal["low", "auto"]] | NotGiven = NOT_GIVEN
252
+ input_fidelity: Optional[Literal["high", "low"]] | NotGiven = NOT_GIVEN,
253
+ output_compression: Optional[int] | NotGiven = NOT_GIVEN
254
+ output_format: Optional[Literal["png", "jpeg", "webp"]] | NotGiven = NOT_GIVEN
255
+ partial_images: Optional[int] | NotGiven = NOT_GIVEN,
246
256
  mask: FileTypes | NotGiven = NOT_GIVEN
247
257
  negative_prompt: Optional[str] = None
248
258
  aspect_ratio: Optional[Literal["1:1", "9:16", "16:9", "4:3", "3:4"]] = None
@@ -252,7 +262,7 @@ class ModelRequestInput(BaseRequest):
252
262
  add_watermark: Optional[bool] = None
253
263
  safety_filter_level: Optional[Literal["block_most", "block_some", "block_few", "block_fewest"]] = None
254
264
  person_generation: Optional[Literal["dont_allow", "allow_adult", "allow_all"]] = None
255
- quality: Optional[Literal["standard", "hd"]] | NotGiven = NOT_GIVEN
265
+ quality: Optional[Literal["standard", "hd", "low", "medium", "high", "auto"]] | NotGiven = NOT_GIVEN,
256
266
  size: Optional[Literal[
257
267
  "auto", "1024x1024", "1536x1024", "1024x1536", "256x256", "512x512", "1792x1024", "1024x1792"]] | NotGiven = NOT_GIVEN
258
268
  style: Optional[Literal["vivid", "natural"]] | NotGiven = NOT_GIVEN
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tamar-model-client
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: A Python SDK for interacting with the Model Manager gRPC service
5
5
  Home-page: http://gitlab.tamaredge.top/project-tap/AgentOS/model-manager-client
6
6
  Author: Oscar Ou
@@ -24,7 +24,7 @@ tamar_model_client/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
24
24
  tamar_model_client/generated/model_service_pb2.py,sha256=RI6wNSmgmylzWPedFfPxx938UzS7kcPR58YTzYshcL8,3066
25
25
  tamar_model_client/generated/model_service_pb2_grpc.py,sha256=k4tIbp3XBxdyuOVR18Ung_4SUryONB51UYf_uUEl6V4,5145
26
26
  tamar_model_client/schemas/__init__.py,sha256=AxuI-TcvA4OMTj2FtK4wAItvz9LrK_293pu3cmMLE7k,394
27
- tamar_model_client/schemas/inputs.py,sha256=dz1m8NbUIxA99JXZc8WlyzbKpDuz1lEzx3VghC33zYI,14625
27
+ tamar_model_client/schemas/inputs.py,sha256=G4u-agGT6-Vrajef6eRh2AI8R4_RtyEYO0bf-RHIDM4,15333
28
28
  tamar_model_client/schemas/outputs.py,sha256=M_fcqUtXPJnfiLabHlyA8BorlC5pYkf5KLjXO1ysKIQ,1031
29
29
  tests/__init__.py,sha256=kbmImddLDwdqlkkmkyKtl4bQy_ipe-R8eskpaBylU9w,38
30
30
  tests/stream_hanging_analysis.py,sha256=W3W48IhQbNAR6-xvMpoWZvnWOnr56CTaH4-aORNBuD4,14807
@@ -32,7 +32,7 @@ tests/test_circuit_breaker.py,sha256=nhEBnyXFjIYjRWlUdu7Z9PnPq48ypbBK6fxN6deHedw
32
32
  tests/test_google_azure_final.py,sha256=Cx2lfnoj48_7pUjpCYbrx6OLJF4cI79McV24_EYt_8s,55093
33
33
  tests/test_logging_issue.py,sha256=JTMbotfHpAEPMBj73pOwxPn-Zn4QVQJX6scMz48FRDQ,2427
34
34
  tests/test_simple.py,sha256=Xf0U-J9_xn_LzUsmYu06suK0_7DrPeko8OHoHldsNxE,7169
35
- tamar_model_client-0.2.0.dist-info/METADATA,sha256=600WDQi8qejbb3n9NFevzPo3EuIo8EaBWJxt07zoSpg,41309
36
- tamar_model_client-0.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
- tamar_model_client-0.2.0.dist-info/top_level.txt,sha256=f1I-S8iWN-cgv4gB8gxRg9jJOTJMumvm4oGKVPfGg6A,25
38
- tamar_model_client-0.2.0.dist-info/RECORD,,
35
+ tamar_model_client-0.2.2.dist-info/METADATA,sha256=xWKam6DjXzqw64ZF1WKqbLZxkapEN8GINU4hbkV5jzU,41309
36
+ tamar_model_client-0.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
+ tamar_model_client-0.2.2.dist-info/top_level.txt,sha256=f1I-S8iWN-cgv4gB8gxRg9jJOTJMumvm4oGKVPfGg6A,25
38
+ tamar_model_client-0.2.2.dist-info/RECORD,,