licos-dev-cli 0.2.10__tar.gz → 0.2.11__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.
- {licos_dev_cli-0.2.10 → licos_dev_cli-0.2.11}/PKG-INFO +2 -2
- {licos_dev_cli-0.2.10 → licos_dev_cli-0.2.11}/pyproject.toml +2 -2
- {licos_dev_cli-0.2.10 → licos_dev_cli-0.2.11}/src/licos_dev_cli/main.py +38 -15
- {licos_dev_cli-0.2.10 → licos_dev_cli-0.2.11}/.gitignore +0 -0
- {licos_dev_cli-0.2.10 → licos_dev_cli-0.2.11}/src/licos_dev_cli/__init__.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: licos-dev-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.11
|
|
4
4
|
Summary: LICOS Dev CLI - generate files and call model capabilities
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Requires-Dist: click>=8.1
|
|
7
|
-
Requires-Dist: licos-dev-sdk>=0.2.
|
|
7
|
+
Requires-Dist: licos-dev-sdk>=0.2.12
|
|
@@ -4,11 +4,11 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "licos-dev-cli"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.11"
|
|
8
8
|
description = "LICOS Dev CLI - generate files and call model capabilities"
|
|
9
9
|
requires-python = ">=3.10"
|
|
10
10
|
dependencies = [
|
|
11
|
-
"licos-dev-sdk>=0.2.
|
|
11
|
+
"licos-dev-sdk>=0.2.12",
|
|
12
12
|
"click>=8.1",
|
|
13
13
|
]
|
|
14
14
|
|
|
@@ -464,16 +464,35 @@ def image_generation_group():
|
|
|
464
464
|
|
|
465
465
|
|
|
466
466
|
@image_generation_group.command("generate")
|
|
467
|
-
@click.option("-p", "--prompt")
|
|
468
|
-
@click.option("--
|
|
469
|
-
@click.option("--
|
|
470
|
-
@click.option("--
|
|
467
|
+
@click.option("-p", "--prompt")
|
|
468
|
+
@click.option("--image", "image", multiple=True, help="Source/reference image URL or Base64 data URI")
|
|
469
|
+
@click.option("--image-url", "image_url", multiple=True, help="Alias for --image")
|
|
470
|
+
@click.option("--reference-image", default=None, help="Alias for --image")
|
|
471
|
+
@click.option("--file-path", "file_path", multiple=True, help="Local source/reference image path")
|
|
472
|
+
@click.option("--input-capabilities", default=None, help="Override image model input filter: text or image")
|
|
473
|
+
@click.option("--negative-prompt", default=None)
|
|
474
|
+
@click.option("--count", default=1, type=int)
|
|
475
|
+
@click.option("--size", default=None)
|
|
471
476
|
@click.option("--model", default=None)
|
|
472
|
-
@click.option("--parameters", default=None, help="Parameters JSON object")
|
|
473
|
-
@click.option("--raw-request", default=None, help="Raw JSON request body")
|
|
474
|
-
@click.option("--no-wait", is_flag=True, help="Return submit response without polling async tasks")
|
|
475
|
-
def image_generate(
|
|
476
|
-
|
|
477
|
+
@click.option("--parameters", default=None, help="Parameters JSON object")
|
|
478
|
+
@click.option("--raw-request", default=None, help="Raw JSON request body")
|
|
479
|
+
@click.option("--no-wait", is_flag=True, help="Return submit response without polling async tasks")
|
|
480
|
+
def image_generate(
|
|
481
|
+
prompt,
|
|
482
|
+
image,
|
|
483
|
+
image_url,
|
|
484
|
+
reference_image,
|
|
485
|
+
file_path,
|
|
486
|
+
input_capabilities,
|
|
487
|
+
negative_prompt,
|
|
488
|
+
count,
|
|
489
|
+
size,
|
|
490
|
+
model,
|
|
491
|
+
parameters,
|
|
492
|
+
raw_request,
|
|
493
|
+
no_wait,
|
|
494
|
+
):
|
|
495
|
+
"""Generate images from text, image URLs/Base64, or local image files."""
|
|
477
496
|
from licos_dev_sdk import ImageGenerationClient
|
|
478
497
|
|
|
479
498
|
parameter_payload = _json_option(parameters, "--parameters") or {}
|
|
@@ -486,12 +505,16 @@ def image_generate(prompt, negative_prompt, count, size, model, parameters, raw_
|
|
|
486
505
|
raise click.UsageError("Provide --prompt or --raw-request.")
|
|
487
506
|
result = ImageGenerationClient().generate(
|
|
488
507
|
prompt or "",
|
|
489
|
-
negative_prompt=negative_prompt,
|
|
490
|
-
count=count,
|
|
491
|
-
size=size,
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
508
|
+
negative_prompt=negative_prompt,
|
|
509
|
+
count=count,
|
|
510
|
+
size=size,
|
|
511
|
+
images=[*image, *image_url],
|
|
512
|
+
reference_image=reference_image,
|
|
513
|
+
file_paths=list(file_path),
|
|
514
|
+
input_capabilities=input_capabilities,
|
|
515
|
+
model=model,
|
|
516
|
+
parameters=parameter_payload,
|
|
517
|
+
raw_request=raw_payload,
|
|
495
518
|
wait=not no_wait,
|
|
496
519
|
)
|
|
497
520
|
_echo_json(result)
|
|
File without changes
|
|
File without changes
|