olca 0.2.40__tar.gz → 0.2.41__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.40
3
+ Version: 0.2.41
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
@@ -137,8 +137,8 @@ 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 and 'states' in s:
140
+ # Skip Langfuse internal state messages and size limit warnings
141
+ if isinstance(s, dict) and ('keep_alive' in s or 'Item exceeds size limit' in str(s)):
142
142
  continue
143
143
 
144
144
  # Handle different response formats
@@ -152,13 +152,9 @@ def print_stream(stream):
152
152
  elif hasattr(message, 'content'):
153
153
  print(message.content)
154
154
  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
155
  print(s)
156
+ except Exception as e:
157
+ print(s)
162
158
 
163
159
  def prepare_input(user_input, system_instructions,append_prompt=True, human=False):
164
160
  appended_prompt = system_instructions + SYSTEM_PROMPT_APPEND if append_prompt else system_instructions
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.40
3
+ Version: 0.2.41
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.40"
10
+ version = "0.2.41"
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.40",
5
+ version = "0.2.41",
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
File without changes
File without changes