olca 0.2.28__py3-none-any.whl → 0.2.30__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- olca/olcacli.py +18 -9
- {olca-0.2.28.dist-info → olca-0.2.30.dist-info}/METADATA +1 -1
- olca-0.2.30.dist-info/RECORD +10 -0
- olca-0.2.28.dist-info/RECORD +0 -10
- {olca-0.2.28.dist-info → olca-0.2.30.dist-info}/LICENSE +0 -0
- {olca-0.2.28.dist-info → olca-0.2.30.dist-info}/WHEEL +0 -0
- {olca-0.2.28.dist-info → olca-0.2.30.dist-info}/entry_points.txt +0 -0
- {olca-0.2.28.dist-info → olca-0.2.30.dist-info}/top_level.txt +0 -0
olca/olcacli.py
CHANGED
@@ -299,19 +299,28 @@ def setup_required_directories(system_instructions, user_input):
|
|
299
299
|
|
300
300
|
def generate_config_example():
|
301
301
|
try:
|
302
|
-
default_system_instructions = "You are interacting using the human tool addressing carefully what the user is asking.
|
303
|
-
|
302
|
+
default_system_instructions = "You are interacting using the human tool addressing carefully what the user is asking."
|
304
303
|
default_user_input = "Interact with me to write a story using the 3 act structure that we will save in ./story/ - Make sure you interact with me and wont quit."
|
305
304
|
|
305
|
+
default_model_name = "gpt-4o-mini"
|
306
|
+
default_recursion_limit = 12
|
307
|
+
default_temperature = 0
|
308
|
+
use_default_human_input = True
|
309
|
+
use_default_tracing = True
|
310
|
+
|
306
311
|
config = {
|
307
312
|
"api_keyname": input("api_keyname [OPENAI_API_KEY]: ") or "OPENAI_API_KEY",
|
308
|
-
"model_name": input("model_name [gpt-4o-mini]: ") or
|
309
|
-
"recursion_limit": int(input("recursion_limit [12]: ") or
|
310
|
-
"temperature": float(input("temperature [0]: ") or
|
311
|
-
"human": input("human [true]: ").lower() in ["true", "yes", "y", "1", ""] or
|
312
|
-
"tracing": input("tracing [true]: ").lower() in ["true", "yes", "y", "1", ""] or
|
313
|
-
"system_instructions":
|
314
|
-
|
313
|
+
"model_name": input("model_name [gpt-4o-mini]: ") or default_model_name,
|
314
|
+
"recursion_limit": int(input("recursion_limit [12]: ") or default_recursion_limit),
|
315
|
+
"temperature": float(input("temperature [0]: ") or default_temperature),
|
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}]: ") or default_system_instructions
|
320
|
+
).replace("\n", " ").replace("system_instructions:","system_instructions: |\n\t"),
|
321
|
+
"user_input": (
|
322
|
+
input(f"user_input [{default_user_input}]: ") or default_user_input
|
323
|
+
).replace("\n", " ").replace("user_input:","user_input: |\n\t")
|
315
324
|
}
|
316
325
|
with open('olca.yml', 'w') as file:
|
317
326
|
yaml.dump(config, file)
|
@@ -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=Lllpzr-1Iku32P_whhMbGbBDPptRZ9EVA_ipS0O5GOQ,14455
|
5
|
+
olca-0.2.30.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
6
|
+
olca-0.2.30.dist-info/METADATA,sha256=Yk4kFOghECSi1lLQ2R3418R425S667U748NWPlnG7Z0,25311
|
7
|
+
olca-0.2.30.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
8
|
+
olca-0.2.30.dist-info/entry_points.txt,sha256=AhP5FMv6vnOq9C76V_vxRVIO50smnZXG4RIY47oD2_U,103
|
9
|
+
olca-0.2.30.dist-info/top_level.txt,sha256=bGDtAReS-xlS0F6MM-DyD0IQUqjNdWmgemnM3vNtrpI,5
|
10
|
+
olca-0.2.30.dist-info/RECORD,,
|
olca-0.2.28.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=ZDSZ9StwpLH2V9rioswrmpPDkN5q2nMe1PegadiJn9Y,13986
|
5
|
-
olca-0.2.28.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
6
|
-
olca-0.2.28.dist-info/METADATA,sha256=Qm9Gh_pCDbn7Glo9ngOHKdMq8hMnowBfdaqReVACDME,25311
|
7
|
-
olca-0.2.28.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
8
|
-
olca-0.2.28.dist-info/entry_points.txt,sha256=AhP5FMv6vnOq9C76V_vxRVIO50smnZXG4RIY47oD2_U,103
|
9
|
-
olca-0.2.28.dist-info/top_level.txt,sha256=bGDtAReS-xlS0F6MM-DyD0IQUqjNdWmgemnM3vNtrpI,5
|
10
|
-
olca-0.2.28.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|