olca 0.2.29__tar.gz → 0.2.31__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.29
3
+ Version: 0.2.31
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
@@ -307,23 +307,28 @@ def generate_config_example():
307
307
  default_temperature = 0
308
308
  use_default_human_input = True
309
309
  use_default_tracing = True
310
-
310
+
311
311
  config = {
312
312
  "api_keyname": input("api_keyname [OPENAI_API_KEY]: ") or "OPENAI_API_KEY",
313
313
  "model_name": input("model_name [gpt-4o-mini]: ") or default_model_name,
314
314
  "recursion_limit": int(input("recursion_limit [12]: ") or default_recursion_limit),
315
315
  "temperature": float(input("temperature [0]: ") or default_temperature),
316
316
  "human": input("human [true]: ").lower() in ["true", "yes", "y", "1", ""] or use_default_human_input,
317
- "tracing": input("tracing [true]: ").lower() in ["true", "yes", "y", "1", ""] or use_default_tracing,
318
- "system_instructions": (
319
- input(f"system_instructions [{default_system_instructions}]: ").replace("\n", " ")
320
- or default_system_instructions
321
- ).replace("\n", " "),
322
- "user_input": (
323
- input(f"user_input [{default_user_input}]: ").replace("\n", " ")
324
- or default_user_input
325
- ).replace("\n", " ")
317
+ "tracing": input("tracing [true]: ").lower() in ["true", "yes", "y", "1", ""] or use_default_tracing
326
318
  }
319
+
320
+ user_system_instructions = input(f"system_instructions [{default_system_instructions}]: ")
321
+ user_system_instructions = user_system_instructions or default_system_instructions
322
+ user_system_instructions = user_system_instructions.replace("\n", " ").replace("\r", " ").replace("\t", " ")
323
+
324
+ user_core_input = input(f"user_input [{default_user_input}]: ")
325
+ user_core_input = user_core_input or default_user_input
326
+ user_core_input = user_core_input.replace("\n", " ").replace("\r", " ").replace("\t", " ")
327
+
328
+
329
+ config["system_instructions"] = user_system_instructions
330
+ config["user_input"] = user_core_input
331
+
327
332
  with open('olca.yml', 'w') as file:
328
333
  yaml.dump(config, file)
329
334
  print("Configuration file 'olca.yml' created successfully.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.29
3
+ Version: 0.2.31
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.29"
10
+ version = "0.2.31"
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.29",
5
+ version = "0.2.31",
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