Skip to content

Commit f7b3004

Browse files
committed
1 parent 125c427 commit f7b3004

File tree

6 files changed

+9
-13
lines changed

6 files changed

+9
-13
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ graph LR
3636

3737
[![pylint](https://github.com/kamangir/openai-commands/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/openai-commands/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/openai-commands/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/openai-commands/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/openai-commands/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/openai-commands/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/openai-commands.svg)](https://pypi.org/project/openai-commands/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/openai-commands)](https://pypistats.org/packages/openai-commands)
3838

39-
built by 🌀 [`blue_options-4.201.1`](https://github.com/kamangir/awesome-bash-cli), based on [`openai_commands-3.216.1`](https://github.com/kamangir/openai-commands).
39+
built by 🌀 [`blue_options-4.201.1`](https://github.com/kamangir/awesome-bash-cli), based on [`openai_commands-3.217.1`](https://github.com/kamangir/openai-commands).

openai_commands/.abcli/image_generation.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ function openai_commands_generate_image() {
1111
local object_name=$(abcli_clarify_object "$3" openai-image-$(abcli_string_timestamp_short))
1212

1313
abcli_eval dryrun=$do_dryrun \
14-
python3 -m openai_commands.images \
14+
python3 -m openai_commands.image_generation \
1515
$task \
1616
--filename $filename \
17-
--options "$options" \
1817
--prompt "\"$prompt\"" \
1918
--object_name $object_name \
2019
"${@:4}"
20+
[[ $? -ne 0 ]] && return 1
2121

2222
[[ "$do_upload" == 1 ]] &&
2323
abcli_upload - $object_name

openai_commands/.abcli/vision.sh

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function openai_commands_vision() {
2929
--options "$3" \
3030
--prompt "\"$prompt\"" \
3131
"${@:5}"
32+
[[ $? -ne 0 ]] && return 1
3233

3334
[[ "$do_upload" == 1 ]] &&
3435
abcli_upload - $object_name

openai_commands/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
DESCRIPTION = f"{ICON} a command interface to the OpenAI API."
66

7-
VERSION = "3.216.1"
7+
VERSION = "3.217.1"
88

99
REPO_NAME = "openai-commands"
1010

openai_commands/image_generation/__main__.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from blue_objects import file, objects
88

99
from openai_commands import NAME
10-
from openai_commands.images.api import OpenAIImageGenerator
10+
from openai_commands.image_generation.api import OpenAIImageGenerator
1111
from openai_commands.logger import logger
1212

1313
NAME = module.name(__file__, NAME)
@@ -17,18 +17,13 @@
1717
parser.add_argument(
1818
"task",
1919
type=str,
20-
help="generate",
20+
help="generate_image",
2121
)
2222
parser.add_argument(
2323
"--object_name",
2424
type=str,
2525
default=".",
2626
)
27-
parser.add_argument(
28-
"--options",
29-
type=str,
30-
default="",
31-
)
3227
parser.add_argument(
3328
"--filename",
3429
type=str,
@@ -49,7 +44,7 @@
4944
args = parser.parse_args()
5045

5146
success = False
52-
if args.task == "generate":
47+
if args.task == "generate_image":
5348
generator = OpenAIImageGenerator(verbose=args.verbose)
5449

5550
success = True

openai_commands/literature_review/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ literature review at scale on [AWS Batch](https://aws.amazon.com/batch/) through
4949
| | |
5050
| --- | --- |
5151
| [aws_batch](https://github.com/kamangir/notebooks-and-scripts/tree/main/blueflow/workflow/runners/aws_batch.py) | [local](https://github.com/kamangir/notebooks-and-scripts/tree/main/blueflow/workflow/runners/local.py) |
52-
| [![image](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-aws_batch-study-type-screening-result/workflow.gif?raw=true&random=7of3efdumo2fa1n5)](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-aws_batch-study-type-screening-result/workflow.gif?raw=true&random=7of3efdumo2fa1n5) | [![image](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-local-study-type-screening-result/workflow.gif?raw=true&random=1jssswjj3klhr1xa)](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-local-study-type-screening-result/workflow.gif?raw=true&random=1jssswjj3klhr1xa) |
52+
| [![image](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-aws_batch-study-type-screening-result/workflow.gif?raw=true&random=0li7y0cumfn2vykc)](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-aws_batch-study-type-screening-result/workflow.gif?raw=true&random=0li7y0cumfn2vykc) | [![image](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-local-study-type-screening-result/workflow.gif?raw=true&random=5wk8mtwnd4u01vve)](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-local-study-type-screening-result/workflow.gif?raw=true&random=5wk8mtwnd4u01vve) |
5353

5454
---
5555

0 commit comments

Comments
 (0)