olca 0.2.84__tar.gz → 0.2.87__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.1
2
2
  Name: olca
3
- Version: 0.2.84
3
+ Version: 0.2.87
4
4
  Summary: A Python package for experimental usage of Langchain and Human-in-the-Loop
5
5
  Home-page: https://github.com/jgwill/olca
6
6
  Author: Jean GUillaume ISabelle
@@ -11,6 +11,7 @@ import os
11
11
  import json
12
12
  import tlid
13
13
  import warnings
14
+ import re
14
15
 
15
16
  warnings.filterwarnings("ignore", message="The function `loads` is in beta. It is actively being worked on, so the API may change.")
16
17
  DEBUG_MODE=False
@@ -77,7 +78,7 @@ def serialize_response_to_json_file(resp, filename):
77
78
 
78
79
  def serialize_response_to_markdown(o):
79
80
  output=o["output"]
80
- string_md="# Output\n"
81
+ string_md=""
81
82
  #string_md+=f"## Model\n{o['model']}\n"
82
83
  #string_md+=f"## Prompt\n{o['prompt']['prompt']}\n"
83
84
  string_md+=f"## Input\n{o['input']}\n"
@@ -139,6 +140,9 @@ def parse_cli_arguments():
139
140
  parser.add_argument('-P','-p','--prefix', type=str,
140
141
  help='a file prefix for output',default="arxiv-")
141
142
  args = parser.parse_args()
143
+ # Clean up prefix: replace spaces with "_" then remove special characters
144
+ args.prefix = re.sub(r'\s+', '_', args.prefix)
145
+ args.prefix = re.sub(r'[^0-9a-zA-Z_]', '', args.prefix)
142
146
  return args
143
147
 
144
148
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.84
3
+ Version: 0.2.87
4
4
  Summary: A Python package for experimental usage of Langchain and Human-in-the-Loop
5
5
  Home-page: https://github.com/jgwill/olca
6
6
  Author: Jean GUillaume ISabelle
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "olca"
10
- version = "0.2.84"
10
+ version = "0.2.87"
11
11
 
12
12
  description = "A Python package for experimental usage of Langchain and Human-in-the-Loop"
13
13
  readme = "README.md"
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='olca',
5
- version = "0.2.84",
5
+ version = "0.2.87",
6
6
  author='Jean GUillaume ISabelle',
7
7
  author_email='jgi@jgwill.com',
8
8
  description='A Python package for experimenting with Langchain agent and interactivity in Terminal modalities.',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes