sference-cli 0.0.3__tar.gz → 0.0.4__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.
- {sference_cli-0.0.3 → sference_cli-0.0.4}/PKG-INFO +2 -2
- {sference_cli-0.0.3 → sference_cli-0.0.4}/pyproject.toml +2 -2
- {sference_cli-0.0.3 → sference_cli-0.0.4}/sference_cli/main.py +10 -1
- {sference_cli-0.0.3 → sference_cli-0.0.4}/.gitignore +0 -0
- {sference_cli-0.0.3 → sference_cli-0.0.4}/README.md +0 -0
- {sference_cli-0.0.3 → sference_cli-0.0.4}/sference_cli/__init__.py +0 -0
- {sference_cli-0.0.3 → sference_cli-0.0.4}/sference_cli/stream_cache.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sference-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: sference command-line interface
|
|
5
5
|
Requires-Python: >=3.12
|
|
6
|
-
Requires-Dist: sference-sdk>=0.0.
|
|
6
|
+
Requires-Dist: sference-sdk>=0.0.4
|
|
7
7
|
Requires-Dist: typer>=0.24.1
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "sference-cli"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.4"
|
|
4
4
|
description = "sference command-line interface"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
7
7
|
dependencies = [
|
|
8
8
|
"typer>=0.24.1",
|
|
9
|
-
"sference-sdk>=0.0.
|
|
9
|
+
"sference-sdk>=0.0.4",
|
|
10
10
|
]
|
|
11
11
|
|
|
12
12
|
[project.scripts]
|
|
@@ -295,6 +295,11 @@ def auth_me(
|
|
|
295
295
|
def responses_create(
|
|
296
296
|
model: str = typer.Option(..., "--model"),
|
|
297
297
|
content: str = typer.Option(..., "--content"),
|
|
298
|
+
include_reasoning: bool = typer.Option(
|
|
299
|
+
True,
|
|
300
|
+
"--include-reasoning/--no-include-reasoning",
|
|
301
|
+
help="Include extracted reasoning in the response output (default: true).",
|
|
302
|
+
),
|
|
298
303
|
wait: bool = typer.Option(False, "--wait/--no-wait"),
|
|
299
304
|
poll_ms: int = typer.Option(500, "--poll-ms", help="Polling interval when --wait is enabled."),
|
|
300
305
|
timeout_s: int = typer.Option(60, "--timeout-s", help="Timeout in seconds when --wait is enabled."),
|
|
@@ -303,7 +308,11 @@ def responses_create(
|
|
|
303
308
|
_ensure_api_credential()
|
|
304
309
|
client = _client(base_url)
|
|
305
310
|
resp = _call_api(
|
|
306
|
-
lambda: client.create_response(
|
|
311
|
+
lambda: client.create_response(
|
|
312
|
+
model=model,
|
|
313
|
+
input=[{"role": "user", "content": content}],
|
|
314
|
+
include_reasoning=include_reasoning,
|
|
315
|
+
)
|
|
307
316
|
)
|
|
308
317
|
if wait:
|
|
309
318
|
final = _wait_for_response(client, resp.id, poll_ms=poll_ms, timeout_s=timeout_s)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|