Skip to content

Commit d05e5c4

Browse files
authored
Merge pull request #7 from Zipstack/ssl-verification-arg
Added an argument to disable SSL certificate verification
2 parents f069c56 + 3aad058 commit d05e5c4

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ This will display detailed usage information.
6161
- `--log_level`: Log level (default: `INFO`).
6262
- `--print_report`: Print a detailed report of all processed files at the end.
6363
- `--include_metadata`: Include metadata on tokens consumed and the context passed to LLMs for prompt studio exported tools in the result for each file.
64+
- `--no_verify`: Disable SSL certificate verification. (By default, SSL verification is enabled.)
6465

6566
## Usage Examples
6667

@@ -141,4 +142,4 @@ On Slack, [join great conversations](https://join-slack.unstract.com/) around LL
141142

142143
[Unstract Cloud](https://unstract.com/): Signup and Try!.
143144

144-
[Unstract developer documentation](https://docs.unstract.com/): Learn more about Unstract and its API.
145+
[Unstract developer documentation](https://docs.unstract.com/): Learn more about Unstract and its API.

main.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class Arguments:
3535
log_level: str = "INFO"
3636
print_report: bool = False
3737
include_metadata: bool = False
38+
verify: bool = True
3839

3940

4041
# Initialize SQLite DB
@@ -246,6 +247,7 @@ def process_file(
246247
api_timeout=args.api_timeout,
247248
logging_level=args.log_level,
248249
include_metadata=args.include_metadata,
250+
verify=args.verify,
249251
)
250252

251253
status_endpoint, execution_status, response = get_status_endpoint(
@@ -418,6 +420,14 @@ def main():
418420
help="Include metadata on tokens consumed and the context passed to LLMs for prompt studio exported tools in the result for each file.",
419421
)
420422

423+
parser.add_argument(
424+
"--no_verify",
425+
dest="verify",
426+
action="store_false",
427+
help="Disable SSL certificate verification.",
428+
)
429+
430+
421431
args = Arguments(**vars(parser.parse_args()))
422432

423433
ch = logging.StreamHandler(sys.stdout)

0 commit comments

Comments
 (0)