File tree 6 files changed +9
-13
lines changed
6 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -36,4 +36,4 @@ graph LR
36
36
37
37
[ ![ 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 )
38
38
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 ) .
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ function openai_commands_generate_image() {
11
11
local object_name=$( abcli_clarify_object " $3 " openai-image-$( abcli_string_timestamp_short) )
12
12
13
13
abcli_eval dryrun=$do_dryrun \
14
- python3 -m openai_commands.images \
14
+ python3 -m openai_commands.image_generation \
15
15
$task \
16
16
--filename $filename \
17
- --options " $options " \
18
17
--prompt " \" $prompt \" " \
19
18
--object_name $object_name \
20
19
" ${@: 4} "
20
+ [[ $? -ne 0 ]] && return 1
21
21
22
22
[[ " $do_upload " == 1 ]] &&
23
23
abcli_upload - $object_name
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ function openai_commands_vision() {
29
29
--options " $3 " \
30
30
--prompt " \" $prompt \" " \
31
31
" ${@: 5} "
32
+ [[ $? -ne 0 ]] && return 1
32
33
33
34
[[ " $do_upload " == 1 ]] &&
34
35
abcli_upload - $object_name
Original file line number Diff line number Diff line change 4
4
5
5
DESCRIPTION = f"{ ICON } a command interface to the OpenAI API."
6
6
7
- VERSION = "3.216 .1"
7
+ VERSION = "3.217 .1"
8
8
9
9
REPO_NAME = "openai-commands"
10
10
Original file line number Diff line number Diff line change 7
7
from blue_objects import file , objects
8
8
9
9
from openai_commands import NAME
10
- from openai_commands .images .api import OpenAIImageGenerator
10
+ from openai_commands .image_generation .api import OpenAIImageGenerator
11
11
from openai_commands .logger import logger
12
12
13
13
NAME = module .name (__file__ , NAME )
17
17
parser .add_argument (
18
18
"task" ,
19
19
type = str ,
20
- help = "generate " ,
20
+ help = "generate_image " ,
21
21
)
22
22
parser .add_argument (
23
23
"--object_name" ,
24
24
type = str ,
25
25
default = "." ,
26
26
)
27
- parser .add_argument (
28
- "--options" ,
29
- type = str ,
30
- default = "" ,
31
- )
32
27
parser .add_argument (
33
28
"--filename" ,
34
29
type = str ,
49
44
args = parser .parse_args ()
50
45
51
46
success = False
52
- if args .task == "generate " :
47
+ if args .task == "generate_image " :
53
48
generator = OpenAIImageGenerator (verbose = args .verbose )
54
49
55
50
success = True
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ literature review at scale on [AWS Batch](https://aws.amazon.com/batch/) through
49
49
| | |
50
50
| --- | --- |
51
51
| [ 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 ) |
53
53
54
54
---
55
55
You can’t perform that action at this time.
0 commit comments