Skip to content

Commit

Permalink
skip printing text response (#3266)
Browse files Browse the repository at this point in the history
* skip printing text response

* update
  • Loading branch information
novaturient95 authored Aug 14, 2024
1 parent 578110f commit 7520800
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ def process_conversational_request(idx: str, data: dict, url: str, endpoint_key:
dict: result dictionary
"""
try:
logger.info(f"request_data: {repr(data)}")
# Basic validation for the input data
messages = data.pop("messages", [])
if not messages: # empty messages
Expand Down Expand Up @@ -518,7 +517,6 @@ def batch_process_data(input_file_path: Path, output_file_path: Path, batch_size
idx = 0
for idx, row in batch.iterrows():
future_result = future_results.get(idx)
logger.info(future_result)
if future_result['exception']:
logger.error(f"row {idx} failed with exception: {future_result['exception']}")
error_map[ERROR] = error_map.get(ERROR, 0) + 1
Expand Down Expand Up @@ -682,7 +680,6 @@ def main():
log_level=logging.INFO,
)

logger.info(args)
data_import(args)


Expand Down

0 comments on commit 7520800

Please sign in to comment.