licos-dev-cli 0.2.5__tar.gz → 0.2.6__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.5 → licos_dev_cli-0.2.6}/PKG-INFO +2 -2
- {licos_dev_cli-0.2.5 → licos_dev_cli-0.2.6}/pyproject.toml +2 -2
- {licos_dev_cli-0.2.5 → licos_dev_cli-0.2.6}/src/licos_dev_cli/main.py +34 -34
- {licos_dev_cli-0.2.5 → licos_dev_cli-0.2.6}/.gitignore +0 -0
- {licos_dev_cli-0.2.5 → licos_dev_cli-0.2.6}/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.6
|
|
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.7
|
|
@@ -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.6"
|
|
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.7",
|
|
12
12
|
"click>=8.1",
|
|
13
13
|
]
|
|
14
14
|
|
|
@@ -298,27 +298,27 @@ def html_cmd(input_path, content, filename, output_dir, content_type):
|
|
|
298
298
|
|
|
299
299
|
# ── Model Catalog ────────────────────────────────────────────────────────────
|
|
300
300
|
|
|
301
|
-
@cli.command("model-catalog")
|
|
302
|
-
@click.option("--refresh", is_flag=True, help="Bypass local catalog cache")
|
|
303
|
-
@click.option("--workspace-id", default=None, help="Workspace id; defaults to runtime workspace")
|
|
304
|
-
@click.option("--input-capabilities", default=None, help="Optional input capabilities filter, for example text or image")
|
|
305
|
-
@click.option(
|
|
306
|
-
"--category-code",
|
|
307
|
-
default="llm",
|
|
308
|
-
help="Model category code, for example llm, vision_llm, image_generation",
|
|
309
|
-
)
|
|
310
|
-
def model_catalog(refresh, workspace_id, input_capabilities, category_code):
|
|
311
|
-
"""Print platform model capability catalog."""
|
|
312
|
-
from licos_dev_sdk import fetch_model_catalogs
|
|
313
|
-
|
|
314
|
-
_echo_json(
|
|
315
|
-
fetch_model_catalogs(
|
|
316
|
-
refresh=refresh,
|
|
317
|
-
workspace_id=workspace_id,
|
|
318
|
-
category_code=category_code,
|
|
319
|
-
input_capabilities=input_capabilities,
|
|
320
|
-
)
|
|
321
|
-
)
|
|
301
|
+
@cli.command("model-catalog")
|
|
302
|
+
@click.option("--refresh", is_flag=True, help="Bypass local catalog cache")
|
|
303
|
+
@click.option("--workspace-id", default=None, help="Workspace id; defaults to runtime workspace")
|
|
304
|
+
@click.option("--input-capabilities", default=None, help="Optional input capabilities filter, for example text or image")
|
|
305
|
+
@click.option(
|
|
306
|
+
"--category-code",
|
|
307
|
+
default="llm",
|
|
308
|
+
help="Model category code, for example llm, vision_llm, image_generation",
|
|
309
|
+
)
|
|
310
|
+
def model_catalog(refresh, workspace_id, input_capabilities, category_code):
|
|
311
|
+
"""Print platform model capability catalog."""
|
|
312
|
+
from licos_dev_sdk import fetch_model_catalogs
|
|
313
|
+
|
|
314
|
+
_echo_json(
|
|
315
|
+
fetch_model_catalogs(
|
|
316
|
+
refresh=refresh,
|
|
317
|
+
workspace_id=workspace_id,
|
|
318
|
+
category_code=category_code,
|
|
319
|
+
input_capabilities=input_capabilities,
|
|
320
|
+
)
|
|
321
|
+
)
|
|
322
322
|
|
|
323
323
|
|
|
324
324
|
# ── LLM ──────────────────────────────────────────────────────────────────────
|
|
@@ -469,12 +469,12 @@ def video_generation_group():
|
|
|
469
469
|
@video_generation_group.command("generate")
|
|
470
470
|
@click.option("-p", "--prompt")
|
|
471
471
|
@click.option("--image-url", default=None)
|
|
472
|
-
@click.option("--model", default=None)
|
|
473
|
-
@click.option("--input-capabilities", default=None, help="Override video model input filter: text or image")
|
|
474
|
-
@click.option("--parameters", default=None, help="Parameters JSON object")
|
|
475
|
-
@click.option("--raw-request", default=None, help="Raw JSON request body")
|
|
476
|
-
@click.option("--no-wait", is_flag=True, help="Return submit response without polling async tasks")
|
|
477
|
-
def video_generate(prompt, image_url, model, input_capabilities, parameters, raw_request, no_wait):
|
|
472
|
+
@click.option("--model", default=None)
|
|
473
|
+
@click.option("--input-capabilities", default=None, help="Override video model input filter: text or image")
|
|
474
|
+
@click.option("--parameters", default=None, help="Parameters JSON object")
|
|
475
|
+
@click.option("--raw-request", default=None, help="Raw JSON request body")
|
|
476
|
+
@click.option("--no-wait", is_flag=True, help="Return submit response without polling async tasks")
|
|
477
|
+
def video_generate(prompt, image_url, model, input_capabilities, parameters, raw_request, no_wait):
|
|
478
478
|
"""Generate a video from a text prompt and optional first-frame image."""
|
|
479
479
|
from licos_dev_sdk import VideoGenerationClient
|
|
480
480
|
|
|
@@ -487,13 +487,13 @@ def video_generate(prompt, image_url, model, input_capabilities, parameters, raw
|
|
|
487
487
|
if raw_payload is None and not prompt:
|
|
488
488
|
raise click.UsageError("Provide --prompt or --raw-request.")
|
|
489
489
|
result = VideoGenerationClient().generate(
|
|
490
|
-
prompt or "",
|
|
491
|
-
image_url=image_url,
|
|
492
|
-
model=model,
|
|
493
|
-
input_capabilities=input_capabilities,
|
|
494
|
-
parameters=parameter_payload,
|
|
495
|
-
raw_request=raw_payload,
|
|
496
|
-
wait=not no_wait,
|
|
490
|
+
prompt or "",
|
|
491
|
+
image_url=image_url,
|
|
492
|
+
model=model,
|
|
493
|
+
input_capabilities=input_capabilities,
|
|
494
|
+
parameters=parameter_payload,
|
|
495
|
+
raw_request=raw_payload,
|
|
496
|
+
wait=not no_wait,
|
|
497
497
|
)
|
|
498
498
|
_echo_json(result)
|
|
499
499
|
|
|
File without changes
|
|
File without changes
|