ara-cli 0.1.9.67__py3-none-any.whl → 0.1.9.69__py3-none-any.whl

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.
ara_cli/prompt_handler.py CHANGED
@@ -82,7 +82,7 @@ def send_prompt(prompt):
82
82
  **config_parameters,
83
83
  messages=prompt,
84
84
  stream=True,
85
- max_tokens=8192
85
+ max_tokens=32768
86
86
  )
87
87
  for chunk in completion:
88
88
  yield chunk
@@ -95,7 +95,7 @@ def append_headings(classifier, param, heading_name):
95
95
 
96
96
  # Check if the file exists, and if not, create an empty file
97
97
  if not os.path.exists(artefact_data_path):
98
- with open(artefact_data_path, 'w') as file:
98
+ with open(artefact_data_path, 'w', encoding='utf-8') as file:
99
99
  file.write("")
100
100
 
101
101
  content = read_string_from_file(artefact_data_path)
@@ -127,7 +127,7 @@ def prompt_data_directory_creation(classifier, parameter):
127
127
 
128
128
 
129
129
  def get_file_content(path):
130
- with open(path, 'r') as file:
130
+ with open(path, 'r', encoding='utf-8') as file:
131
131
  return file.read()
132
132
 
133
133
 
@@ -161,7 +161,7 @@ def load_selected_prompt_templates(classifier, parameter):
161
161
  print("WARNING: config.prompt_templates.md does not exist.")
162
162
  return
163
163
 
164
- with open(config_file_path, 'r') as config_file:
164
+ with open(config_file_path, 'r', encoding='utf-8') as config_file:
165
165
  content = config_file.read()
166
166
 
167
167
  global_base_template_path = TemplatePathManager.get_template_base_path()
@@ -253,7 +253,7 @@ def extract_and_load_markdown_files(md_prompt_file_path):
253
253
  """
254
254
  header_stack = []
255
255
  path_accumulator = []
256
- with open(md_prompt_file_path, 'r') as file:
256
+ with open(md_prompt_file_path, 'r', encoding='utf-8') as file:
257
257
  for line in file:
258
258
  if line.strip().startswith('#'):
259
259
  level = line.count('#')
@@ -322,7 +322,7 @@ def get_partial_file_content(file_name, line_ranges):
322
322
  lines_to_read.extend(range(start, end + 1))
323
323
 
324
324
  partial_content = []
325
- with open(file_name, 'r') as file:
325
+ with open(file_name, 'r', encoding='utf-8') as file:
326
326
  for i, line in enumerate(file, 1):
327
327
  if i in lines_to_read:
328
328
  partial_content.append(line)
@@ -372,7 +372,7 @@ def create_and_send_custom_prompt(classifier, parameter):
372
372
  extensions = [".rules.md", ".prompt_givens.md", ".intention.md", ".commands.md"]
373
373
  combined_content_markdown, image_data_list = collect_file_content_by_extension(prompt_data_path, extensions)
374
374
 
375
- with open(prompt_file_path_markdown, 'w') as file:
375
+ with open(prompt_file_path_markdown, 'w', encoding='utf-8') as file:
376
376
  file.write(combined_content_markdown)
377
377
 
378
378
  prompt = read_string_from_file(prompt_file_path_markdown)
@@ -390,7 +390,7 @@ def create_and_send_custom_prompt(classifier, parameter):
390
390
  append_headings(classifier, parameter, "result")
391
391
 
392
392
  artefact_data_path = f"ara/{sub_directory}/{parameter}.data/{classifier}.prompt_log.md"
393
- with open(artefact_data_path, 'a') as file:
393
+ with open(artefact_data_path, 'a', encoding='utf-8') as file:
394
394
  for chunk in send_prompt(message_list):
395
395
  chunk_content = chunk.choices[0].delta.content
396
396
  if not chunk_content:
@@ -424,7 +424,7 @@ def generate_config_prompt_givens_file(prompt_data_path, config_prompt_givens_na
424
424
  print(f"artefact {artefact_to_mark} marked in related config.prompt_givens.md per default")
425
425
 
426
426
  # Read the generated file content
427
- with open(config_prompt_givens_path, 'r') as file:
427
+ with open(config_prompt_givens_path, 'r', encoding='utf-8') as file:
428
428
  markdown_listing = file.readlines()
429
429
 
430
430
  updated_listing = []
@@ -435,5 +435,5 @@ def generate_config_prompt_givens_file(prompt_data_path, config_prompt_givens_na
435
435
  updated_listing.append(line)
436
436
 
437
437
  # Write the updated listing back to the file
438
- with open(config_prompt_givens_path, 'w') as file:
438
+ with open(config_prompt_givens_path, 'w', encoding='utf-8') as file:
439
439
  file.write("".join(updated_listing))
ara_cli/version.py CHANGED
@@ -1,2 +1,2 @@
1
1
  # version.py
2
- __version__ = "0.1.9.67" # fith parameter like .0 for local install test purposes only. official numbers should be 4 digit numbers
2
+ __version__ = "0.1.9.69" # fith parameter like .0 for local install test purposes only. official numbers should be 4 digit numbers
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ara_cli
3
- Version: 0.1.9.67
3
+ Version: 0.1.9.69
4
4
  Requires-Dist: litellm
5
5
  Requires-Dist: llama-index
6
6
  Requires-Dist: llama-index-llms-openai
@@ -25,13 +25,13 @@ ara_cli/list_filter.py,sha256=Not17hIngI37gZsLtIKxopB-BmyWoOGlBzSqBwh-Zpc,5273
25
25
  ara_cli/output_suppressor.py,sha256=ZByUwLH2DxOb-eJ31KQbtIziBKdykoyxvwxZ0tSammA,371
26
26
  ara_cli/prompt_chat.py,sha256=kd_OINDQFit6jN04bb7mzgY259JBbRaTaNp9F-webkc,1346
27
27
  ara_cli/prompt_extractor.py,sha256=a8LwPj6U8sG_v3SqDXQyPvDZQds4kHnYSO8eGissYJA,7503
28
- ara_cli/prompt_handler.py,sha256=3r7GeiOOoasZ4nz0AT51Sw5M_hyHq-RFTGPQIxT_CQk,17458
28
+ ara_cli/prompt_handler.py,sha256=eUkiA4CnBlSBQPZRQ78i7HqllvIDYlJgrSqQmwQHtp8,17621
29
29
  ara_cli/prompt_rag.py,sha256=vmlt4-rSboWibwgO_KUF79TK99YXT5KXjmbD9FeWdZY,7449
30
30
  ara_cli/run_file_lister.py,sha256=XbrrDTJXp1LFGx9Lv91SNsEHZPP-PyEMBF_P4btjbDA,2360
31
31
  ara_cli/tag_extractor.py,sha256=4krQyvmLR2ffhe7N7lWC7QjaxXcb90HaQdmjnBiD8ak,2523
32
32
  ara_cli/template_manager.py,sha256=YXPj2jGNDb-diIHFEK_vGJ-ZucodnXSGAPofKTnOofI,6633
33
33
  ara_cli/update_config_prompt.py,sha256=PZgNIN3dTw6p80GyX8Sp5apkAhSoykwnkEbHo3IOkUo,4571
34
- ara_cli/version.py,sha256=ijl3fM4h2e9CBlwsSPtThOSO0Gz29LkbJ34xKFGx-v0,146
34
+ ara_cli/version.py,sha256=47jiKD51bfE-X5CaysuEIPJuxXII3Vvv_DNLT7glr-I,146
35
35
  ara_cli/artefact_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  ara_cli/artefact_models/artefact_load.py,sha256=dNcwZDW2Dk0bts9YnPZ0ESmWD2NbsLIvl4Z-qQeGmTQ,401
37
37
  ara_cli/artefact_models/artefact_mapping.py,sha256=8aD0spBjkJ8toMAmFawc6UTUxB6-tEEViZXv2I-r88Q,1874
@@ -151,8 +151,8 @@ tests/test_list_filter.py,sha256=gSRKirTtFuhRS3QlFHqWl89WvCvAdVEnFsCWTYmgB2o,792
151
151
  tests/test_tag_extractor.py,sha256=nSiAYlTKZ7TLAOtcJpwK5zTWHhFYU0tI5xKnivLc1dU,2712
152
152
  tests/test_template_manager.py,sha256=q-LMHRG4rHkD6ON6YW4cpZxUx9hul6Or8wVVRC2kb-8,4099
153
153
  tests/test_update_config_prompt.py,sha256=vSsLvc18HZdVjVM93qXWVbJt752xTLL6VGjSVCrPufk,6729
154
- ara_cli-0.1.9.67.dist-info/METADATA,sha256=LUsIQxYDmhuivLA0VNgiE2U47Y3jznv7C6D-z2IMOAc,415
155
- ara_cli-0.1.9.67.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
156
- ara_cli-0.1.9.67.dist-info/entry_points.txt,sha256=v4h7MzysTgSIDYfEo3oj4Kz_8lzsRa3hq-KJHEcLVX8,45
157
- ara_cli-0.1.9.67.dist-info/top_level.txt,sha256=WM4cLHT5DYUaWzLtRj-gu3yVNFpGQ6lLRI3FMmC-38I,14
158
- ara_cli-0.1.9.67.dist-info/RECORD,,
154
+ ara_cli-0.1.9.69.dist-info/METADATA,sha256=rInVDCWbgC4qvLyE2StAFpOXWahBfD7OBkfE5csu6SQ,415
155
+ ara_cli-0.1.9.69.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
156
+ ara_cli-0.1.9.69.dist-info/entry_points.txt,sha256=v4h7MzysTgSIDYfEo3oj4Kz_8lzsRa3hq-KJHEcLVX8,45
157
+ ara_cli-0.1.9.69.dist-info/top_level.txt,sha256=WM4cLHT5DYUaWzLtRj-gu3yVNFpGQ6lLRI3FMmC-38I,14
158
+ ara_cli-0.1.9.69.dist-info/RECORD,,