Skip to content

Commit

Permalink
Dh-5567/reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed Mar 22, 2024
1 parent 6196e2d commit a7d1f2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dataherald/sql_generator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ def construct_intermediate_steps(

def truncate_observations(self, obervarion: str, max_length: int = 2000) -> str:
"""Truncate the tool input."""
return obervarion[:max_length] + "... (truncated)" if len(obervarion) > max_length else obervarion
return (
obervarion[:max_length] + "... (truncated)"
if len(obervarion) > max_length
else obervarion
)

@abstractmethod
def generate_response(
Expand Down

0 comments on commit a7d1f2f

Please sign in to comment.