```md openai-client-cli 0.1.1 by Asher Jingkong Chen OpenAI API client CLI Usage: openai-client [OPTIONS] Arguments: The API request path. (part of the URL) The program will use regex to extract the matched segment in . For example, the extracted strings will be the same when is either `chat/completions`, `/chat/completions` or `https://api.openai.com/v1/chat/completions`. Options: -k, --key-file The file path where the API key is stored. The program will attempt the following steps to obtain a valid API key: 1. Read the file from the provided path . 2. Read the environment variable `OPENAI_API_KEY`. 3. Read the file from the default paths in the following order: `openai.env`, `.openai_profile`, `.env`, `~/openai.env`, `~/.openai_profile` or `~/.env`. 4. Exit the program with a non-zero return code. -m, --method The HTTP method used for the API request. The program will attempt the following steps to determine a valid HTTP method: 1. Read the value of argument . 2. If the `parameter` object is successfully fetched from either or one of the default paths, set to `POST`. 3. Otherwise, set to `GET`. -g, --org-file The file path where the organization ID is stored. The program will attempt the following steps to obtain a valid organization ID: 1. Read the file from the provided path . 2. Read the file from provided path of key file . 3. Read the environment variable `OPENAI_ORG_KEY`. 4. Read the file from the default paths in the following order: `openai.env`, `.openai_profile`, `.env`, `~/openai.env`, `~/.openai_profile` or `~/.env`. 5. Ignore the field and leave it empty. -o, --output-file The file path where the API response will be stored. The program will attempt the following steps to successfully store the response: 1. Export the output to the provided file path . 2. Export the output to the standard output. 3. Exit the program with a non-zero return code. -p, --parameter-file The file path where the API request parameters (body) are stored in JSON format. The program will attempt the following steps to obtain a valid parameter object: 1. Read the file from the provided path . 2. Read the file from the default paths in the following order: `openai.json`, `openai-parameters.json`, `openai_parameters.json`, `openai-parameters`, `openai_parameters`, or `openai.config.json`. 3. Ignore the field and leave it empty -v, --verbose Switch for verbose logging mode. This mode is useful for debugging purposes. It is disabled by default. -h, --help Print help -V, --version Print version ```