From 681ef8116519719a037e6921c70149285efde4ab Mon Sep 17 00:00:00 2001 From: pk-zipstack Date: Tue, 12 Nov 2024 13:19:08 +0530 Subject: [PATCH 1/4] Added an argument to disable SSL certificate verification --- README.md | 1 + main.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/README.md b/README.md index 0f3ef40..cdd5130 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ This will display detailed usage information. - `--log_level`: Log level (default: `INFO`). - `--print_report`: Print a detailed report of all processed files at the end. - `--include_metadata`: Include metadata on tokens consumed and the context passed to LLMs for prompt studio exported tools in the result for each file. +- `--no-verify`: Disable SSL certificate verification. (By default, SSL verification is enabled.) ## Usage Examples diff --git a/main.py b/main.py index d8432dc..649cb67 100644 --- a/main.py +++ b/main.py @@ -35,6 +35,7 @@ class Arguments: log_level: str = "INFO" print_report: bool = False include_metadata: bool = False + verify: bool = True # Initialize SQLite DB @@ -246,6 +247,7 @@ def process_file( api_timeout=args.api_timeout, logging_level=args.log_level, include_metadata=args.include_metadata, + verify=args.verify, ) status_endpoint, execution_status, response = get_status_endpoint( @@ -418,6 +420,14 @@ def main(): help="Include metadata on tokens consumed and the context passed to LLMs for prompt studio exported tools in the result for each file.", ) + parser.add_argument( + "--no-verify", + dest="verify", + action="store_false", + help="Disable SSL certificate verification.", + ) + + args = Arguments(**vars(parser.parse_args())) ch = logging.StreamHandler(sys.stdout) @@ -441,3 +451,5 @@ def main(): if __name__ == "__main__": main() + + From c4fd712c4a2e4b0fce1670a6fc69395a59411dfa Mon Sep 17 00:00:00 2001 From: pk-zipstack Date: Tue, 12 Nov 2024 15:09:51 +0530 Subject: [PATCH 2/4] Fixed naming convention of argument Co-authored-by: Ritwik G <100672805+ritwik-g@users.noreply.github.com> Signed-off-by: pk-zipstack --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 649cb67..a2db988 100644 --- a/main.py +++ b/main.py @@ -421,7 +421,7 @@ def main(): ) parser.add_argument( - "--no-verify", + "--no_verify", dest="verify", action="store_false", help="Disable SSL certificate verification.", From 79373fff220153f80d84343c930c53baccab299d Mon Sep 17 00:00:00 2001 From: pk-zipstack Date: Tue, 12 Nov 2024 15:18:44 +0530 Subject: [PATCH 3/4] Updated naming convention in readme.md Signed-off-by: pk-zipstack --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cdd5130..8b2bd76 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ This will display detailed usage information. - `--log_level`: Log level (default: `INFO`). - `--print_report`: Print a detailed report of all processed files at the end. - `--include_metadata`: Include metadata on tokens consumed and the context passed to LLMs for prompt studio exported tools in the result for each file. -- `--no-verify`: Disable SSL certificate verification. (By default, SSL verification is enabled.) +- `--no_verify`: Disable SSL certificate verification. (By default, SSL verification is enabled.) ## Usage Examples @@ -142,4 +142,4 @@ On Slack, [join great conversations](https://join-slack.unstract.com/) around LL [Unstract Cloud](https://unstract.com/): Signup and Try!. -[Unstract developer documentation](https://docs.unstract.com/): Learn more about Unstract and its API. \ No newline at end of file +[Unstract developer documentation](https://docs.unstract.com/): Learn more about Unstract and its API. From 3aad0583fca8d8ab0f51006c3b93683b718d4426 Mon Sep 17 00:00:00 2001 From: Ritwik G <100672805+ritwik-g@users.noreply.github.com> Date: Tue, 12 Nov 2024 15:25:44 +0530 Subject: [PATCH 4/4] Update main.py Signed-off-by: Ritwik G <100672805+ritwik-g@users.noreply.github.com> --- main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.py b/main.py index a2db988..7c5fcfc 100644 --- a/main.py +++ b/main.py @@ -451,5 +451,3 @@ def main(): if __name__ == "__main__": main() - -