We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6196e2d commit a7d1f2fCopy full SHA for a7d1f2f
dataherald/sql_generator/__init__.py
@@ -137,7 +137,11 @@ def construct_intermediate_steps(
137
138
def truncate_observations(self, obervarion: str, max_length: int = 2000) -> str:
139
"""Truncate the tool input."""
140
- return obervarion[:max_length] + "... (truncated)" if len(obervarion) > max_length else obervarion
+ return (
141
+ obervarion[:max_length] + "... (truncated)"
142
+ if len(obervarion) > max_length
143
+ else obervarion
144
+ )
145
146
@abstractmethod
147
def generate_response(
0 commit comments