opsiom-cli 1.2.0__tar.gz → 1.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: opsiom-cli
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: CLI de chat pour Opsiom, l'assistant IA francophone.
5
5
  Author-email: Jules Ecorcheville <jules.ecorcheville@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "opsiom-cli"
7
- version = "1.2.0"
7
+ version = "1.2.2"
8
8
  description = "CLI de chat pour Opsiom, l'assistant IA francophone."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -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.2.0"
43
+ VERSION = "1.2.2"
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 ", timeout=10)
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 ", timeout=10)
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 ", json=payload, timeout=self.timeout)
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
 
@@ -620,3 +620,9 @@ def main():
620
620
  if args.no_logo:
621
621
  global OCTOPUS_MARK
622
622
  OCTOPUS_MARK = []
623
+
624
+ run_chat(client, url, api_key)
625
+
626
+
627
+ if __name__ == "__main__":
628
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: opsiom-cli
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: CLI de chat pour Opsiom, l'assistant IA francophone.
5
5
  Author-email: Jules Ecorcheville <jules.ecorcheville@gmail.com>
6
6
  License-Expression: MIT
File without changes
File without changes