olca 0.2.40__py3-none-any.whl → 0.2.42__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- olca/olcacli.py +6 -8
- {olca-0.2.40.dist-info → olca-0.2.42.dist-info}/METADATA +1 -1
- {olca-0.2.40.dist-info → olca-0.2.42.dist-info}/RECORD +7 -7
- {olca-0.2.40.dist-info → olca-0.2.42.dist-info}/LICENSE +0 -0
- {olca-0.2.40.dist-info → olca-0.2.42.dist-info}/WHEEL +0 -0
- {olca-0.2.40.dist-info → olca-0.2.42.dist-info}/entry_points.txt +0 -0
- {olca-0.2.40.dist-info → olca-0.2.42.dist-info}/top_level.txt +0 -0
olca/olcacli.py
CHANGED
@@ -137,8 +137,10 @@ def extract_extra_directories_from_olca_config_system_and_user_input(system_inst
|
|
137
137
|
def print_stream(stream):
|
138
138
|
for s in stream:
|
139
139
|
try:
|
140
|
-
# Skip Langfuse internal state messages
|
141
|
-
if isinstance(s, dict) and 'keep_alive' in s
|
140
|
+
# Skip Langfuse internal state messages and size limit warnings
|
141
|
+
if isinstance(s, dict) and ('keep_alive' in s or 'states' in s):
|
142
|
+
continue
|
143
|
+
if isinstance(s, str) and 'Item exceeds size limit' in s:
|
142
144
|
continue
|
143
145
|
|
144
146
|
# Handle different response formats
|
@@ -152,13 +154,9 @@ def print_stream(stream):
|
|
152
154
|
elif hasattr(message, 'content'):
|
153
155
|
print(message.content)
|
154
156
|
else:
|
155
|
-
# Only print if it's not a system message
|
156
|
-
if not (isinstance(s, dict) and any(k in s for k in ['keep_alive', 'states'])):
|
157
|
-
print(s)
|
158
|
-
except Exception as e:
|
159
|
-
# Only print if it's not a system message
|
160
|
-
if not (isinstance(s, dict) and any(k in s for k in ['keep_alive', 'states'])):
|
161
157
|
print(s)
|
158
|
+
except Exception as e:
|
159
|
+
print(s)
|
162
160
|
|
163
161
|
def prepare_input(user_input, system_instructions,append_prompt=True, human=False):
|
164
162
|
appended_prompt = system_instructions + SYSTEM_PROMPT_APPEND if append_prompt else system_instructions
|
@@ -1,12 +1,12 @@
|
|
1
1
|
olca/__init__.py,sha256=3QyLLAys_KiiDIe-cfO_7QyY7di_qCaCS-sVziW2BOw,23
|
2
2
|
olca/fusewill_cli.py,sha256=Gf8CaYs7Uo4NH8QfgRNYalpmSUo047p9rzdkvIABHi8,7872
|
3
3
|
olca/fusewill_utils.py,sha256=IOIElqWCIsNzePlS1FZa5_35vySYLwbMUGW6UhNefIc,6065
|
4
|
-
olca/olcacli.py,sha256=
|
4
|
+
olca/olcacli.py,sha256=mMaI56EfKBg7ulb4EmFocWF6RGDXuFCOUkc69nI0rQQ,15792
|
5
5
|
olca/tracing.py,sha256=FnToJVhD7XxP0lBe_Ca7bQJYDHEs9bSaFqZx7rpbSaU,1269
|
6
6
|
olca/utils.py,sha256=l01DkaDw5ENl8tzN8X4Ftgntz321AEAY1gpRX8_5q6Q,879
|
7
|
-
olca-0.2.
|
8
|
-
olca-0.2.
|
9
|
-
olca-0.2.
|
10
|
-
olca-0.2.
|
11
|
-
olca-0.2.
|
12
|
-
olca-0.2.
|
7
|
+
olca-0.2.42.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
8
|
+
olca-0.2.42.dist-info/METADATA,sha256=sjSL_NSOc_qblYbq9NpD7tGGIOMNOK5xIAbN0riS7Pc,25311
|
9
|
+
olca-0.2.42.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
10
|
+
olca-0.2.42.dist-info/entry_points.txt,sha256=AhP5FMv6vnOq9C76V_vxRVIO50smnZXG4RIY47oD2_U,103
|
11
|
+
olca-0.2.42.dist-info/top_level.txt,sha256=bGDtAReS-xlS0F6MM-DyD0IQUqjNdWmgemnM3vNtrpI,5
|
12
|
+
olca-0.2.42.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|