Skip to content

Commit

Permalink
fix: update request body
Browse files Browse the repository at this point in the history
  • Loading branch information
SeisSerenata committed May 25, 2024
1 parent b2d3790 commit 42ce4f9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions any_parser/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ def _request_info_extraction(self, user_id, job_id, s3_key, mode, prompt=""):
"userId": user_id,
"jobId": job_id,
"fileKey": s3_key,
"user_prompt": prompt,
"use_textract": "True" if mode == "advanced" else "False",
"userPrompt": prompt,
}
response = requests.post(
self._parseurl, headers=self._request_header, json=payload
Expand All @@ -115,8 +114,7 @@ def _request_instruction_extraction(self, user_id, job_id, s3_key, mode, prompt=
"userId": user_id,
"jobId": job_id,
"fileKey": s3_key,
"user_prompt": prompt,
"use_textract": "True" if mode == "advanced" else "False",
"userPrompt": prompt,
}
response = requests.post(
self._instructurl, headers=self._request_header, json=payload
Expand Down

0 comments on commit 42ce4f9

Please sign in to comment.