OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
genai
/
venv
/
lib
/
python3.6
/
site-packages
/
openai
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:00:17 AM
rwxr-xr-x
📄
__init__.py
932 bytes
05/09/2024 07:00:16 AM
rw-r--r--
📁
__pycache__
-
05/09/2024 07:00:17 AM
rwxr-xr-x
📄
api_requestor.py
13.37 KB
05/09/2024 07:00:16 AM
rw-r--r--
📁
api_resources
-
05/09/2024 07:00:17 AM
rwxr-xr-x
📄
cli.py
18.57 KB
05/09/2024 07:00:16 AM
rw-r--r--
📁
data
-
05/09/2024 07:00:17 AM
rwxr-xr-x
📄
error.py
3.72 KB
05/09/2024 07:00:16 AM
rw-r--r--
📄
gzip_stream.py
2.24 KB
05/09/2024 07:00:16 AM
rw-r--r--
📄
http_client.py
11.82 KB
05/09/2024 07:00:16 AM
rw-r--r--
📄
multipart_data_generator.py
2.89 KB
05/09/2024 07:00:16 AM
rw-r--r--
📄
object_classes.py
407 bytes
05/09/2024 07:00:16 AM
rw-r--r--
📄
openai_object.py
11.42 KB
05/09/2024 07:00:16 AM
rw-r--r--
📄
openai_response.py
581 bytes
05/09/2024 07:00:16 AM
rw-r--r--
📄
py.typed
0 bytes
05/09/2024 07:00:16 AM
rw-r--r--
📄
request_metrics.py
401 bytes
05/09/2024 07:00:16 AM
rw-r--r--
📄
upload_progress.py
1.16 KB
05/09/2024 07:00:16 AM
rw-r--r--
📄
util.py
5.97 KB
05/09/2024 07:00:16 AM
rw-r--r--
📄
version.py
18 bytes
05/09/2024 07:00:16 AM
rw-r--r--
Editing: __init__.py
Close
import os # OpenAI Python bindings. # # Originally forked from the MIT-licensed Stripe Python bindings. # Configuration variables api_key = os.environ.get("OPENAI_API_KEY") organization = os.environ.get("OPENAI_ORGANIZATION") client_id = None api_base = os.environ.get("OPENAI_API_BASE", "https://api.openai.com") file_api_base = None api_version = None verify_ssl_certs = True proxy = None default_http_client = None app_info = None enable_telemetry = True max_network_retries = 0 ca_bundle_path = os.path.join(os.path.dirname(__file__), "data/ca-certificates.crt") debug = False # Set to either 'debug' or 'info', controls console logging log = None # API resources from openai.api_resources import ( # noqa: E402,F401 Answer, Classification, Completion, Engine, ErrorObject, File, FineTune, Snapshot, ) from openai.error import OpenAIError, APIError, InvalidRequestError # noqa: E402,F401