runapi-gpt-image 0.2.0__tar.gz → 0.2.1__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.
@@ -1,18 +1,18 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runapi-gpt-image
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: RunAPI GPT Image SDK for text-to-image and image editing workflows in JavaScript, Python, Ruby, Go, Java, and PHP
5
5
  Project-URL: Homepage, https://runapi.ai/models/gpt-image
6
6
  Project-URL: Documentation, https://runapi.ai/docs#sdk-gpt-image
7
7
  Project-URL: Source, https://github.com/runapi-ai/gpt-image-sdk
8
8
  Project-URL: Issues, https://github.com/runapi-ai/gpt-image-sdk/issues
9
9
  Project-URL: Changelog, https://github.com/runapi-ai/gpt-image-sdk/blob/main/CHANGELOG.md
10
- Project-URL: Release Notes, https://github.com/runapi-ai/gpt-image-sdk/releases/tag/python%2Fv0.2.0
10
+ Project-URL: Release Notes, https://github.com/runapi-ai/gpt-image-sdk/releases/tag/python%2Fv0.2.1
11
11
  Author-email: RunAPI <contact@runapi.ai>
12
12
  License-Expression: Apache-2.0
13
13
  Keywords: api,golang,gpt-image,gpt-image-api,gradle,image-api,image-generation,java,maven,python,ruby,runapi,runapi-ai,sdk,text-to-image,typescript
14
14
  Requires-Python: >=3.9
15
- Requires-Dist: runapi-core>=0.3.0
15
+ Requires-Dist: runapi-core>=0.3.1
16
16
  Description-Content-Type: text/markdown
17
17
 
18
18
  # GPT Image Python SDK for RunAPI
@@ -4,14 +4,14 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "runapi-gpt-image"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "RunAPI GPT Image SDK for text-to-image and image editing workflows in JavaScript, Python, Ruby, Go, Java, and PHP"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
11
11
  license = "Apache-2.0"
12
12
  authors = [{ name = "RunAPI", email = "contact@runapi.ai" }]
13
13
  keywords = ["runapi", "runapi-ai", "gpt-image", "api", "sdk", "typescript", "python", "ruby", "golang", "java", "maven", "gradle", "image-generation", "text-to-image", "image-api", "gpt-image-api"]
14
- dependencies = ["runapi-core>=0.3.0"]
14
+ dependencies = ["runapi-core>=0.3.1"]
15
15
 
16
16
  [project.urls]
17
17
  Homepage = "https://runapi.ai/models/gpt-image"
@@ -19,7 +19,7 @@ Documentation = "https://runapi.ai/docs#sdk-gpt-image"
19
19
  Source = "https://github.com/runapi-ai/gpt-image-sdk"
20
20
  Issues = "https://github.com/runapi-ai/gpt-image-sdk/issues"
21
21
  Changelog = "https://github.com/runapi-ai/gpt-image-sdk/blob/main/CHANGELOG.md"
22
- "Release Notes" = "https://github.com/runapi-ai/gpt-image-sdk/releases/tag/python%2Fv0.2.0"
22
+ "Release Notes" = "https://github.com/runapi-ai/gpt-image-sdk/releases/tag/python%2Fv0.2.1"
23
23
 
24
24
  [tool.hatch.build.targets.wheel]
25
25
  packages = ["src/runapi"]
@@ -13,6 +13,7 @@ class TextToImageResponse(TaskResponse):
13
13
  """Task status/result for GPT Image text-to-image."""
14
14
  id = required(str)
15
15
  status = optional(str, enum=lambda: TaskResponse.Status.ALL)
16
+ task_replayed = optional(bool)
16
17
  images = optional([lambda: Image])
17
18
  error = optional(str)
18
19
 
@@ -69,7 +69,7 @@ def test_exposes_resource_accessors():
69
69
 
70
70
 
71
71
  def test_text_to_image_create_posts_compacted_body():
72
- fake = FakeHttp({"id": "t1", "status": "pending"})
72
+ fake = FakeHttp({"id": "t1", "status": "pending", "task_replayed": True})
73
73
  client = GptImageClient(api_key="k", http_client=fake)
74
74
  result = client.text_to_image.create(
75
75
  model="gpt-image-1.5",
@@ -86,6 +86,7 @@ def test_text_to_image_create_posts_compacted_body():
86
86
  ),
87
87
  ]
88
88
  assert isinstance(result, TextToImageResponse)
89
+ assert result.task_replayed is True
89
90
 
90
91
 
91
92
  def test_text_to_image_get_fetches_by_id():