Skip to content

Commit

Permalink
start of general-refactor-2024-09-20-32354 🪄 - kamangir/bolt#746
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Sep 21, 2024
1 parent 57817d6 commit fac7ecd
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ to use on [AWS SageMaker](https://aws.amazon.com/sagemaker/) replace `<plugin-na

[![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/)

built by 🌀 [`blue_options-4.73.1-abcli-metadata-2024-09-15-09097`](https://github.com/kamangir/awesome-bash-cli), based on [`openai_commands-3.179.1`](https://github.com/kamangir/openai-commands).
built by 🌀 [`blue_options-4.73.1-abcli-current`](https://github.com/kamangir/awesome-bash-cli), based on [`openai_commands-3.181.1`](https://github.com/kamangir/openai-commands).
4 changes: 2 additions & 2 deletions openai_commands/DALLE/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
from blue_objects import file, objects

from articraft import html
from openai_commands import NAME, VERSION
from openai_commands import NAME
from openai_commands.DALLE.canvas import Canvas
from openai_commands.logger import logger

NAME = module.name(__file__, NAME)


parser = argparse.ArgumentParser(NAME, description=f"{NAME}-{VERSION}")
parser = argparse.ArgumentParser(NAME)
parser.add_argument(
"task",
type=str,
Expand Down
2 changes: 1 addition & 1 deletion openai_commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

VERSION = "3.179.1"
VERSION = "3.181.1"

REPO_NAME = "openai-commands"

Expand Down
8 changes: 5 additions & 3 deletions openai_commands/completion/__main__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import argparse

from blueness import module
from openai_commands import NAME, VERSION
from blueness.argparse.generic import sys_exit

from openai_commands import NAME
from openai_commands.completion.prompts.bash import bash_prompt
from openai_commands.logger import logger
from blueness.argparse.generic import sys_exit

NAME = module.name(__file__, NAME)


parser = argparse.ArgumentParser(NAME, description=f"{NAME}-{VERSION}")
parser = argparse.ArgumentParser(NAME)
parser.add_argument(
"task",
type=str,
Expand Down
8 changes: 5 additions & 3 deletions openai_commands/gpt/__main__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import argparse

from blueness import module
from openai_commands import NAME, VERSION
from blueness.argparse.generic import sys_exit

from openai_commands import NAME
from openai_commands import env
from openai_commands.gpt.chat import chat_with_openai, list_models
from openai_commands.logger import logger
from blueness.argparse.generic import sys_exit

NAME = module.name(__file__, NAME)

parser = argparse.ArgumentParser(NAME, description=f"{NAME}-{VERSION}")
parser = argparse.ArgumentParser(NAME)
parser.add_argument(
"task",
type=str,
Expand Down
6 changes: 3 additions & 3 deletions openai_commands/images/__main__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import argparse
from blueness import module
from tqdm import tqdm

from blueness import module
from blueness.argparse.generic import sys_exit
from blue_options import string
from blue_objects import file, objects

from openai_commands import NAME, VERSION
from openai_commands import NAME
from openai_commands.images.api import OpenAIImageGenerator
from openai_commands.logger import logger

NAME = module.name(__file__, NAME)


parser = argparse.ArgumentParser(NAME, description=f"{NAME}-{VERSION}")
parser = argparse.ArgumentParser(NAME)
parser.add_argument(
"task",
type=str,
Expand Down
2 changes: 1 addition & 1 deletion openai_commands/literature_review/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ literature review at scale on [AWS Batch](https://aws.amazon.com/batch/) through
| | |
| --- | --- |
| [aws_batch](https://github.com/kamangir/notebooks-and-scripts/tree/main/notebooks_and_scripts/workflow/runners/aws_batch.py) | [local](https://github.com/kamangir/notebooks-and-scripts/tree/main/notebooks_and_scripts/workflow/runners/local.py) |
| [![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=hpOS44gugm487ouT)](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=hpOS44gugm487ouT) | [![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=gNinKA5q0gXXeJO0)](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-local-study-type-screening-result/workflow.gif?raw=true&random=gNinKA5q0gXXeJO0) |
| [![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=ETZ8aSuSkLkON850)](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=ETZ8aSuSkLkON850) | [![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=jxbbKohTEiP9iIw0)](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-local-study-type-screening-result/workflow.gif?raw=true&random=jxbbKohTEiP9iIw0) |

---

Expand Down
8 changes: 5 additions & 3 deletions openai_commands/literature_review/__main__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import argparse
import base64

from blueness import module
from openai_commands import NAME, VERSION
from blueness.argparse.generic import sys_exit

from openai_commands import NAME
from openai_commands.literature_review.combination import combine
from openai_commands.literature_review.functions import review_literature
from openai_commands.literature_review.multiple import (
generate_workflow as generate_multiple_review_workflow,
)
from openai_commands.logger import logger
from blueness.argparse.generic import sys_exit

NAME = module.name(__file__, NAME)

parser = argparse.ArgumentParser(NAME, description=f"{NAME}-{VERSION}")
parser = argparse.ArgumentParser(NAME)
parser.add_argument(
"task",
type=str,
Expand Down
8 changes: 5 additions & 3 deletions openai_commands/vision/__main__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import argparse

from blueness import module
from blueness.argparse.generic import sys_exit
from blue_options.options import Options
from openai_commands import NAME, VERSION

from openai_commands import NAME
from openai_commands.vision.completion import complete_object, Detail
from openai_commands.logger import logger
from blueness.argparse.generic import sys_exit

NAME = module.name(__file__, NAME)


parser = argparse.ArgumentParser(NAME, description=f"{NAME}-{VERSION}")
parser = argparse.ArgumentParser(NAME)
parser.add_argument(
"task",
type=str,
Expand Down

0 comments on commit fac7ecd

Please sign in to comment.