Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ from pydo.inference import Client
client = Client(token=os.environ["DIGITALOCEAN_TOKEN"]) # PAT with full access scope

result = client.images.generate(
model="openai-gpt-image-1",
model="openai-gpt-image-2",
prompt="A friendly cartoon shark typing on a laptop at a sunny beach",
n=1,
)
Expand Down
2 changes: 1 addition & 1 deletion examples/inference/image_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def main() -> None:
client = Client(token=os.environ["DIGITALOCEAN_TOKEN"])

result = client.images.generate(
model="openai-gpt-image-1",
model="openai-gpt-image-2",
prompt="A friendly shark typing on a laptop at a sunny beach",
n=1,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class TestImagesGenerate:
@pytest.mark.real_billing
def test_images_generate(self, inference_client):
resp = inference_client.images.generate(
model="openai-gpt-image-1",
model="openai-gpt-image-2",
prompt="A simple red circle on white background",
n=1,
)
Expand Down
8 changes: 4 additions & 4 deletions tests/mocked/test_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def test_models_list(mock_client: Client, mock_client_url):
"owned_by": "minimax",
},
{
"id": "openai-gpt-image-1",
"id": "openai-gpt-image-2",
"object": "model",
"created": 1699000200,
"owned_by": "openai",
Expand Down Expand Up @@ -292,7 +292,7 @@ def test_images_generate(mock_client: Client, mock_client_url):
)

resp = mock_client.images.generate(
model="openai-gpt-image-1",
model="openai-gpt-image-2",
prompt="A futuristic cityscape at sunset",
n=1,
)
Expand Down Expand Up @@ -327,7 +327,7 @@ def test_images_generate_multiple(mock_client: Client, mock_client_url):
)

resp = mock_client.images.generate(
model="openai-gpt-image-1",
model="openai-gpt-image-2",
prompt="A red rose",
n=2,
)
Expand Down Expand Up @@ -850,7 +850,7 @@ def test_images_generate_422(mock_client: Client, mock_client_url):

with pytest.raises(Exception, match="Invalid prompt"):
mock_client.images.generate(
model="openai-gpt-image-1",
model="openai-gpt-image-2",
prompt="",
)

Expand Down
2 changes: 1 addition & 1 deletion tests/mocked/test_inference_namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def test_namespace_images_generate():
status=200,
)

resp = client.images.generate(model="openai-gpt-image-1", prompt="A sunset", n=1)
resp = client.images.generate(model="openai-gpt-image-2", prompt="A sunset", n=1)
assert resp.data[0].b64_json == "abc=="


Expand Down
Loading