opsiom-cli 1.2.3__tar.gz → 1.2.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.
- {opsiom_cli-1.2.3 → opsiom_cli-1.2.4}/PKG-INFO +1 -1
- {opsiom_cli-1.2.3 → opsiom_cli-1.2.4}/pyproject.toml +1 -1
- {opsiom_cli-1.2.3 → opsiom_cli-1.2.4}/src/opsiom_cli/cli.py +4 -4
- {opsiom_cli-1.2.3 → opsiom_cli-1.2.4}/src/opsiom_cli.egg-info/PKG-INFO +1 -1
- {opsiom_cli-1.2.3 → opsiom_cli-1.2.4}/README.md +0 -0
- {opsiom_cli-1.2.3 → opsiom_cli-1.2.4}/setup.cfg +0 -0
- {opsiom_cli-1.2.3 → opsiom_cli-1.2.4}/src/opsiom_cli/__init__.py +0 -0
- {opsiom_cli-1.2.3 → opsiom_cli-1.2.4}/src/opsiom_cli.egg-info/SOURCES.txt +0 -0
- {opsiom_cli-1.2.3 → opsiom_cli-1.2.4}/src/opsiom_cli.egg-info/dependency_links.txt +0 -0
- {opsiom_cli-1.2.3 → opsiom_cli-1.2.4}/src/opsiom_cli.egg-info/entry_points.txt +0 -0
- {opsiom_cli-1.2.3 → opsiom_cli-1.2.4}/src/opsiom_cli.egg-info/requires.txt +0 -0
- {opsiom_cli-1.2.3 → opsiom_cli-1.2.4}/src/opsiom_cli.egg-info/top_level.txt +0 -0
|
@@ -40,7 +40,7 @@ try:
|
|
|
40
40
|
except ImportError:
|
|
41
41
|
readline = None # absent par défaut sur certains Windows (pyreadline3 comble le manque)
|
|
42
42
|
|
|
43
|
-
VERSION = "1.
|
|
43
|
+
VERSION = "1.2.4"
|
|
44
44
|
CONFIG_PATH = Path.home() / ".config" / "opsiom" / "config.json"
|
|
45
45
|
HISTORY_PATH = Path.home() / ".local" / "share" / "opsiom" / "history"
|
|
46
46
|
TRANSCRIPTS_DIR = Path.home() / "opsiom-conversations"
|
|
@@ -359,12 +359,12 @@ class OpsiomClient:
|
|
|
359
359
|
self.session.headers.update(headers)
|
|
360
360
|
|
|
361
361
|
def health(self):
|
|
362
|
-
r = self.session.get(f"{self.base_url}/api/health
|
|
362
|
+
r = self.session.get(f"{self.base_url}/api/health", timeout=10)
|
|
363
363
|
r.raise_for_status()
|
|
364
364
|
return r.json()
|
|
365
365
|
|
|
366
366
|
def list_models(self):
|
|
367
|
-
r = self.session.get(f"{self.base_url}/api/models
|
|
367
|
+
r = self.session.get(f"{self.base_url}/api/models", timeout=10)
|
|
368
368
|
r.raise_for_status()
|
|
369
369
|
return r.json()
|
|
370
370
|
|
|
@@ -373,7 +373,7 @@ class OpsiomClient:
|
|
|
373
373
|
if model:
|
|
374
374
|
payload["model"] = model
|
|
375
375
|
payload.update(params)
|
|
376
|
-
r = self.session.post(f"{self.base_url}/api/chat
|
|
376
|
+
r = self.session.post(f"{self.base_url}/api/chat", json=payload, timeout=self.timeout)
|
|
377
377
|
r.raise_for_status()
|
|
378
378
|
return r.json()
|
|
379
379
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|