olca 0.2.29__py3-none-any.whl → 0.2.31__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.
- olca/olcacli.py +15 -10
- {olca-0.2.29.dist-info → olca-0.2.31.dist-info}/METADATA +1 -1
- olca-0.2.31.dist-info/RECORD +10 -0
- olca-0.2.29.dist-info/RECORD +0 -10
- {olca-0.2.29.dist-info → olca-0.2.31.dist-info}/LICENSE +0 -0
- {olca-0.2.29.dist-info → olca-0.2.31.dist-info}/WHEEL +0 -0
- {olca-0.2.29.dist-info → olca-0.2.31.dist-info}/entry_points.txt +0 -0
- {olca-0.2.29.dist-info → olca-0.2.31.dist-info}/top_level.txt +0 -0
olca/olcacli.py
CHANGED
@@ -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.")
|
@@ -0,0 +1,10 @@
|
|
1
|
+
olca/__init__.py,sha256=3QyLLAys_KiiDIe-cfO_7QyY7di_qCaCS-sVziW2BOw,23
|
2
|
+
olca/fusewill_cli.py,sha256=ZFW2Oeq-gQpAaTIxzsztQWDMv7-R9WJTVcSspbTxpPk,5926
|
3
|
+
olca/fusewill_utils.py,sha256=TyyCVRkWeXaS14vh0BXGK-tj0ZPZ3_uQNnAOM-IE9FA,3405
|
4
|
+
olca/olcacli.py,sha256=TqA3nmeL-ZO9RgMqhtlMNLcg9ukJS7aXkQZ7RYRyv1o,14698
|
5
|
+
olca-0.2.31.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
6
|
+
olca-0.2.31.dist-info/METADATA,sha256=6jJkCvYpS0M6kjykqOQoz1EAzVTeI-JQ8uU5t6e_l4I,25311
|
7
|
+
olca-0.2.31.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
8
|
+
olca-0.2.31.dist-info/entry_points.txt,sha256=AhP5FMv6vnOq9C76V_vxRVIO50smnZXG4RIY47oD2_U,103
|
9
|
+
olca-0.2.31.dist-info/top_level.txt,sha256=bGDtAReS-xlS0F6MM-DyD0IQUqjNdWmgemnM3vNtrpI,5
|
10
|
+
olca-0.2.31.dist-info/RECORD,,
|
olca-0.2.29.dist-info/RECORD
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
olca/__init__.py,sha256=3QyLLAys_KiiDIe-cfO_7QyY7di_qCaCS-sVziW2BOw,23
|
2
|
-
olca/fusewill_cli.py,sha256=ZFW2Oeq-gQpAaTIxzsztQWDMv7-R9WJTVcSspbTxpPk,5926
|
3
|
-
olca/fusewill_utils.py,sha256=TyyCVRkWeXaS14vh0BXGK-tj0ZPZ3_uQNnAOM-IE9FA,3405
|
4
|
-
olca/olcacli.py,sha256=qO2Uxb6Ofh6jnT-vgilJFa7GsllSyre5Ps0n78hFbfc,14421
|
5
|
-
olca-0.2.29.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
6
|
-
olca-0.2.29.dist-info/METADATA,sha256=Pt3L2DeULgaTuIORraKoLMXMCjxGfiQPvVF-X3XzfEg,25311
|
7
|
-
olca-0.2.29.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
8
|
-
olca-0.2.29.dist-info/entry_points.txt,sha256=AhP5FMv6vnOq9C76V_vxRVIO50smnZXG4RIY47oD2_U,103
|
9
|
-
olca-0.2.29.dist-info/top_level.txt,sha256=bGDtAReS-xlS0F6MM-DyD0IQUqjNdWmgemnM3vNtrpI,5
|
10
|
-
olca-0.2.29.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|