Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an argument to disable SSL certificate verification #7

Merged
merged 4 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 12 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Arguments:
log_level: str = "INFO"
print_report: bool = False
include_metadata: bool = False
verify: bool = True


# Initialize SQLite DB
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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",
pk-zipstack marked this conversation as resolved.
Show resolved Hide resolved
dest="verify",
action="store_false",
help="Disable SSL certificate verification.",
)


args = Arguments(**vars(parser.parse_args()))

ch = logging.StreamHandler(sys.stdout)
Expand All @@ -441,3 +451,5 @@ def main():

if __name__ == "__main__":
main()


ritwik-g marked this conversation as resolved.
Show resolved Hide resolved