tamar-model-client 0.2.1__tar.gz → 0.2.3__tar.gz

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.
Files changed (40) hide show
  1. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/PKG-INFO +1 -1
  2. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/setup.py +1 -1
  3. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/schemas/inputs.py +15 -10
  4. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client.egg-info/PKG-INFO +1 -1
  5. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/README.md +0 -0
  6. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/setup.cfg +0 -0
  7. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/__init__.py +0 -0
  8. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/async_client.py +0 -0
  9. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/auth.py +0 -0
  10. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/circuit_breaker.py +0 -0
  11. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/core/__init__.py +0 -0
  12. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/core/base_client.py +0 -0
  13. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/core/http_fallback.py +0 -0
  14. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/core/logging_setup.py +0 -0
  15. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/core/request_builder.py +0 -0
  16. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/core/request_id_manager.py +0 -0
  17. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/core/response_handler.py +0 -0
  18. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/core/utils.py +0 -0
  19. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/enums/__init__.py +0 -0
  20. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/enums/channel.py +0 -0
  21. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/enums/invoke.py +0 -0
  22. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/enums/providers.py +0 -0
  23. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/error_handler.py +0 -0
  24. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/exceptions.py +0 -0
  25. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/generated/__init__.py +0 -0
  26. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/generated/model_service_pb2.py +0 -0
  27. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/generated/model_service_pb2_grpc.py +0 -0
  28. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/json_formatter.py +0 -0
  29. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/logging_icons.py +0 -0
  30. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/schemas/__init__.py +0 -0
  31. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/schemas/outputs.py +0 -0
  32. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/sync_client.py +0 -0
  33. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client/utils.py +0 -0
  34. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client.egg-info/SOURCES.txt +0 -0
  35. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client.egg-info/dependency_links.txt +0 -0
  36. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client.egg-info/requires.txt +0 -0
  37. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tamar_model_client.egg-info/top_level.txt +0 -0
  38. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tests/__init__.py +0 -0
  39. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tests/test_circuit_breaker.py +0 -0
  40. {tamar_model_client-0.2.1 → tamar_model_client-0.2.3}/tests/test_google_azure_final.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tamar-model-client
3
- Version: 0.2.1
3
+ Version: 0.2.3
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
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="tamar-model-client",
5
- version="0.2.1",
5
+ version="0.2.3",
6
6
  description="A Python SDK for interacting with the Model Manager gRPC service",
7
7
  author="Oscar Ou",
8
8
  author_email="oscar.ou@tamaredge.ai",
@@ -137,12 +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
- partial_images: Optional[int] | NotGiven = NOT_GIVEN,
141
- 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
142
142
  response_format: Optional[Literal["url", "b64_json"]] | NotGiven = NOT_GIVEN
143
143
  size: Optional[Literal[
144
144
  "auto", "1024x1024", "1536x1024", "1024x1536", "256x256", "512x512", "1792x1024", "1024x1792"]] | NotGiven = NOT_GIVEN
145
- stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
145
+ stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN
146
146
  style: Optional[Literal["vivid", "natural"]] | NotGiven = NOT_GIVEN
147
147
  user: str | NotGiven = NOT_GIVEN
148
148
  extra_headers: Headers | None = None
@@ -159,17 +159,17 @@ class OpenAIImagesEditInput(BaseModel):
159
159
  image: Union[FileTypes, List[FileTypes]]
160
160
  prompt: str
161
161
  background: Optional[Literal["transparent", "opaque", "auto"]] | NotGiven = NOT_GIVEN
162
- input_fidelity: Optional[Literal["high", "low"]] | NotGiven = NOT_GIVEN,
162
+ input_fidelity: Optional[Literal["high", "low"]] | NotGiven = NOT_GIVEN
163
163
  mask: FileTypes | NotGiven = NOT_GIVEN
164
164
  model: Union[str, ImageModel, None] | NotGiven = NOT_GIVEN
165
165
  n: Optional[int] | 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", "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
170
170
  response_format: Optional[Literal["url", "b64_json"]] | NotGiven = NOT_GIVEN
171
171
  size: Optional[Literal["256x256", "512x512", "1024x1024", "1536x1024", "1024x1536", "auto"]] | NotGiven = NOT_GIVEN
172
- stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
172
+ stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN
173
173
  user: str | NotGiven = NOT_GIVEN
174
174
  extra_headers: Headers | None = None
175
175
  extra_query: Query | None = None
@@ -248,6 +248,11 @@ class ModelRequestInput(BaseRequest):
248
248
  image: Optional[Union[FileTypes, List[FileTypes]]] = None
249
249
  prompt: Optional[str] = None
250
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
251
256
  mask: FileTypes | NotGiven = NOT_GIVEN
252
257
  negative_prompt: Optional[str] = None
253
258
  aspect_ratio: Optional[Literal["1:1", "9:16", "16:9", "4:3", "3:4"]] = None
@@ -257,7 +262,7 @@ class ModelRequestInput(BaseRequest):
257
262
  add_watermark: Optional[bool] = None
258
263
  safety_filter_level: Optional[Literal["block_most", "block_some", "block_few", "block_fewest"]] = None
259
264
  person_generation: Optional[Literal["dont_allow", "allow_adult", "allow_all"]] = None
260
- quality: Optional[Literal["standard", "hd"]] | NotGiven = NOT_GIVEN
265
+ quality: Optional[Literal["standard", "hd", "low", "medium", "high", "auto"]] | NotGiven = NOT_GIVEN
261
266
  size: Optional[Literal[
262
267
  "auto", "1024x1024", "1536x1024", "1024x1536", "256x256", "512x512", "1792x1024", "1024x1792"]] | NotGiven = NOT_GIVEN
263
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.1
3
+ Version: 0.2.3
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