Skip to content

Commit ca02591

Browse files
committed
Rebranding aiy to oai
1 parent f573e4d commit ca02591

File tree

15 files changed

+74
-101
lines changed

15 files changed

+74
-101
lines changed

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These are supported funding model platforms
22

3-
github: [visioninit]
3+
github: [draupner1]

.github/workflows/build-linux.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ jobs:
1919
pip install pyinstaller
2020
- name: Build Linux Binary
2121
run: |
22-
pyinstaller --onefile aiy.py --name aiy --distpath dist/
22+
pyinstaller --onefile oai.py --name oai --distpath dist/
2323
cp LICENSE dist/
24-
mkdir out && cd dist && tar -zcvf ../out/aiy-linux-binary.tar.gz *
24+
mkdir out && cd dist && tar -zcvf ../out/oai-linux-binary.tar.gz *
2525
- name: Generate change log
2626
run: |
27-
git clone https://github.com/visioninit/aiy
28-
cd aiy
27+
git clone https://github.com/draupner1/oai
28+
cd oai
2929
git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:' * %s' | sed '/Merge/d' > changelog.txt
3030
cp changelog.txt ..
3131
cd ..
32-
rm -fr aiy
32+
rm -fr oai
3333
- name: set package version
3434
run: |
3535
echo "***************************************"
36-
dist/aiy --version
36+
dist/oai --version
3737
echo "***************************************"
38-
echo "DEBIAN_PACKAGE_VERSION=$(dist/aiy --version | awk -F: '{print $2}' | tr -d ' ')+$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
38+
echo "DEBIAN_PACKAGE_VERSION=$(dist/oai --version | awk -F: '{print $2}' | tr -d ' ')+$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
3939
- name: Build Debian Package
4040
run: |
4141
sudo apt-get update -y
@@ -50,7 +50,7 @@ jobs:
5050
with:
5151
name: Linux Binary
5252
path: |
53-
out/aiy-linux-binary.tar.gz
53+
out/oai-linux-binary.tar.gz
5454
- name: Upload Release Linux .deb
5555
uses: actions/upload-artifact@v3
5656
with:

.github/workflows/build-win.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
# pip install pyinstaller
2222
# - name: Build Windows Binary
2323
# run: |
24-
# pyinstaller --onefile aiy.py --distpath dist/
25-
# mkdir out && cd dist && Compress-Archive -Path . -DestinationPath ../out/aiy-windows-standalone.zip
24+
# pyinstaller --onefile oai.py --distpath dist/
25+
# mkdir out && cd dist && Compress-Archive -Path . -DestinationPath ../out/oai-windows-standalone.zip
2626
# cd ..
2727
- name: Install pynsist
2828
run: |
@@ -38,14 +38,14 @@ jobs:
3838
run: |
3939
cp resources/install/win/installer.cfg installer.cfg
4040
pynsist installer.cfg
41-
cp build/nsis/aiy-windows-installer.exe out\aiy-windows-installer.exe
41+
cp build/nsis/oai-windows-installer.exe out\oai-windows-installer.exe
4242
- name: Upload Release Windows
4343
uses: actions/upload-artifact@v3
4444
with:
4545
name: Windows Binary
46-
path: out/aiy-windows-installer.exe
46+
path: out/oai-windows-installer.exe
4747
# - name: Upload Release Windows
4848
# uses: actions/upload-artifact@v3
4949
# with:
5050
# name: Windows Binary
51-
# path: out/aiy-windows-standalone.zip
51+
# path: out/oai-windows-standalone.zip

README.md

+15-36
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
AIY - Ask question from bash shell and get tailored documentation response
1+
oai - Ask question from bash shell and get tailored documentation response
22
========================================
3-
![image](https://user-images.githubusercontent.com/654993/216212025-5e9e6725-b042-4010-8f4d-649706565b80.png)
3+
![image](https://user-images.githubusercontent.com/3023775/232043126-34d4fcae-65d8-449a-9738-7f9726f55d11.png)
44

5-
AIY is a command line tool that uses OpenAI's language model to provide a documentation-like experience to users. With Aiy, users can get answers to their technical questions and receive step-by-step guidance to complete tasks.
5+
oai is a command line tool that uses OpenAI's language model to provide a documentation-like experience to users. With oai, users can get answers to their questions and receive step-by-step guidance to complete tasks.
66

77
If your organization appreciates this project or is looking for someone to help with your systems and infrastructure, please reach out to me at [LinkedIn](https://www.linkedin.com/in/riddiough/).
88

@@ -16,42 +16,21 @@ If your organization appreciates this project or is looking for someone to help
1616
4. Go to the API Key section ([https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys))
1717
5. Create a new secret key
1818
6. Copy the API key
19-
7. When running Aiy the first time, you will be prompted for your key
19+
7. When running oai the first time, you will be prompted for your key
2020

2121
</details>
2222

23-
Install on Debian based systems (Debain, Mint, Ubuntu)
24-
-------------------
25-
26-
#### 1. Install our official public software signing key
27-
28-
```
29-
wget -O- https://ppa.aimodels.org/aiy/visioninit.gpg | gpg --dearmor > visioninit.gpg
30-
cat visioninit.gpg | sudo tee -a /usr/share/keyrings/visioninit.gpg > /dev/null
31-
```
32-
33-
#### 2. Add our repository to your list of repositories
34-
35-
```
36-
echo 'deb [signed-by=/usr/share/keyrings/visioninit.gpg] https://ppa.aimodels.org/aiy ./' |\
37-
sudo tee -a /etc/apt/sources.list.d/aimodels.list
38-
```
39-
40-
#### 3. Update your package database and install aiy
41-
42-
```sudo apt update && sudo apt install aiy```
43-
4423
( Anyone who might be able to help me get this set up with a snap or flatpack? I've been working on trying to set up these workflows )
4524

4625
Quick Start
4726
-----------
4827

49-
1. Clone repository `git clone https://github.com/visioninit/aiy.git'
50-
2. Change directory `cd aiy`
28+
1. Clone repository `git clone https://github.com/draupner1/oai.git'
29+
2. Change directory `cd oai`
5130
3. Install dependencies `pip install -r requirements.txt`
52-
4. Run `python aiy` and enter OpenAI key as prompted to complete setup
53-
5. Prompt with `python aiy` or `python aiy "how do I..."`
54-
31+
4. Run `python oai` and enter OpenAI key as prompted to complete setup
32+
5. Prompt with `python oai` or `python oai "how do I..."`
33+
6. Optional: Install link in PATH, or in ~/.local/bin/
5534
<details>
5635
<summary>Python Requirements</summary>
5736

@@ -64,18 +43,18 @@ Quick Start
6443
Usage
6544
-----
6645

67-
To use AIY, simply run the script and provide a prompt that describes the task you want to complete or the question you want to ask.
46+
To use oai, simply run the script and provide a prompt that describes the task you want to complete or the question you want to ask.
6847

6948
For example:
7049

71-
`python aiy.py "How to install and run a web server on Ubuntu?"`
50+
`python oai.py "How to install and run a web server on Ubuntu?"`
7251

7352
If you have added the script to your path, you can run it from anywhere:
7453

75-
`aiy "How to install and run a web server on Ubuntu?"`
54+
`oai "How to install and run a web server on Ubuntu?"`
7655

77-
![image](https://user-images.githubusercontent.com/654993/216211945-068bb6a6-b937-44ae-a09c-b75aa8f4d9d6.png)
78-
![image](https://user-images.githubusercontent.com/654993/216211997-167f131f-023b-4b90-8f06-fc7a0e377f6b.png)
56+
![image](https://user-images.githubusercontent.com/3023775/232043124-5bcdc240-4b86-4397-9355-ff0a8dc2f3fe.png)
57+
![image](https://user-images.githubusercontent.com/3023775/232043119-d25b1e93-c99b-48e6-b9c6-ccbc1270a800.png)
7958

8059
Options
8160
-------
@@ -87,4 +66,4 @@ Options
8766
Contributing
8867
------------
8968

90-
If you'd like to contribute to AIY, feel free to create a pull request or open an issue. All contributions are welcome!
69+
If you'd like to contribute to oai, feel free to create a pull request or open an issue. All contributions are welcome!

aiy.py oai.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def post_completion(openai_response):
3131
if config.get_expert_mode() != "true":
3232
openai_response += '\n\n[Notice] OpenAI\'s models have limited knowledge after 2020. Commands and versions' \
3333
'may be outdated. Recommendations are not guaranteed to work and may be dangerous.' \
34-
'To disable this notice, switch to expert mode with `aiy --expert`.'
34+
'To disable this notice, switch to expert mode with `oai --expert`.'
3535
return openai_response
3636

3737
def get_session():
@@ -54,12 +54,12 @@ def main():
5454
desc = "This tool sends a query to OpenAIs Chat API from the command line.\n\n"\
5555
"A new chat session is started with -n <pre-info> and gives the opportunity to\n"\
5656
"provide pre-information to your question\n\n"\
57-
"Report any issues at: https://github.com/visioninit/aiy/issues"
57+
"Report any issues at: https://github.com/draupner1/oai/issues"
5858
epilog = "Please note that the responses from OpenAI's API are not guaranteed to be accurate and " \
5959
"use of the tool is at your own risk.\n"
6060

6161
# Create an ArgumentParser object
62-
parser = argparse.ArgumentParser(prog='aiy - CLI assistant',
62+
parser = argparse.ArgumentParser(prog='oai - CLI assistant',
6363
formatter_class=argparse.RawTextHelpFormatter,
6464
description=desc,
6565
epilog=epilog)
@@ -72,7 +72,7 @@ def main():
7272
parser.add_argument('-x', '--expert', action="store_true", help='Toggle warning', dest='expert')
7373
parser.add_argument('-i', '--key', action="store_true", help='Reset API key', dest='apikey')
7474
parser.add_argument('-v', '--version', action="store_true", help=f'Get Version (hint: it\'s {version})', dest='version')
75-
parser.add_argument('--licenses', action="store_true", help='Show Aiy & Third Party Licenses', dest='licenses')
75+
parser.add_argument('--licenses', action="store_true", help='Show oai & Third Party Licenses', dest='licenses')
7676
parser.add_argument('prompt', type=str, nargs='?', help='Prompt to send')
7777
args = parser.parse_args()
7878

@@ -107,7 +107,7 @@ def main():
107107
sys.exit()
108108

109109
if args.version:
110-
console.print("aiy version: " + version)
110+
console.print("oai version: " + version)
111111
sys.exit()
112112

113113
if args.licenses:

resources/build/deb/changelog

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
aiy (0~0) unstable; urgency=medium
1+
oai (0~0) unstable; urgency=medium
22

33
* Initial release.
44

5-
-- Justin Riddiough <jriddiough@gmail.com> Fri, 03 Feb 2023 00:51:37 +0100
5+
-- Anders Karlsson <draupnerinfo@gmail.com> Fri, 14 Apr 2023 10:58:36 +0100

resources/build/deb/control

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
Source: aiy
1+
Source: oai
22
Section: science
33
Priority: optional
4-
Maintainer: Justin Riddiough <jriddiough@gmail.com>
4+
Maintainer: Anders Karlsson <draupnerinfo@gmail.com>
55
Build-Depends: debhelper-compat (= 12)
66
Standards-Version: 4.6.0
7-
Homepage: https://aimodels.org/
8-
Vcs-Browser: https://github.com/visioninit/aiy
9-
Vcs-Git: https://github.com/visioninit/aiy.git
7+
Homepage: https://draupnerdata.org/
8+
Vcs-Browser: https://github.com/draupner1/oai
9+
Vcs-Git: https://github.com/draupner1/oai.git
1010
Rules-Requires-Root: binary-targets
1111

12-
Package: aiy
12+
Package: oai
1313
Architecture: any
1414
Pre-Depends: ${misc:Pre-Depends}
1515
Depends: ${misc:Depends},
1616
${shlibs:Depends}
17-
Description: Aiy - AI Assistant
18-
aiy is a powerful command-line tool that utilizes AI models to solve technical questions
17+
Description: oai - ChatGPT in CLI
18+
oai is a powerful command-line tool that utilizes OpenAI models to solve questions

resources/build/deb/copyright

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2-
Upstream-Name: Aiy
3-
Upstream-Contact: https://aimodels.org/
4-
Source: https://github.com/visioninit/aiy
2+
Upstream-Name: Oai
3+
Upstream-Contact: https://draupnerdata.org/
4+
Source: https://github.com/draupner1/oai
55
Comment: The binary file is created via pyinstaller and ships copies of
66
multiple PyPi modules, released under various OSS licenses. Please refer
7-
to the output of `aiy --license` for a full list of licenses.
7+
to the output of `oai --license` for a full list of licenses.
88

99
Files: *
10-
Copyright: 2022, Justin Riddiough (VisionInit)
10+
Copyright: 2023, Anders Karlsson (DraupnerData)
1111
License: Apache-2.0
1212
Licensed under the Apache License, Version 2.0 (the "License");
1313
you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ Comment: The full text of the Apache 2.0 license can be found in the
2424
file '/usr/share/common-licenses/Apache-2.0'.
2525

2626
Files: resources/icons/*
27-
Copyright: 2022, Justin Riddiough (VisionInit)
27+
Copyright: 2023, Anders Karlsson (DraupnerData)
2828
License: other
2929
Logos and images are not licensed under Apache 2.0 License. Please ask
3030
the copyright holder for more information.

resources/build/deb/install

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dist/aiy usr/bin/
1+
dist/oai usr/bin/
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
# vim: set ts=4 sw=4 ai si et:
33

4-
exec /usr/libexec/aiy/aiy $@
4+
exec /usr/libexec/oai/oai $@
55

66
exit 0

resources/build/deb/upstream/metadata

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Archive: GitHub
3-
Bug-Database: https://github.com/visioninit/aiy/issues
4-
Bug-Submit: https://github.com/visioninit/aiy/issues/new
5-
Changelog: https://github.com/visioninit/aiy/commits/
6-
Repository: https://github.com/visioninit/aiy.git
7-
Repository-Browse: https://github.com/visioninit/aiy
3+
Bug-Database: https://github.com/draupner1/oai/issues
4+
Bug-Submit: https://github.com/draupner1/oai/issues/new
5+
Changelog: https://github.com/draupner1/oai/commits/
6+
Repository: https://github.com/draupner1/oai.git
7+
Repository-Browse: https://github.com/draupner1/oai

resources/build/flatpak/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ cd resources/build/flatpak
22
pip install --upgrade pip
33
pip install requirements-parser
44
python3 flatpak-pip-generator --runtime='org.freedesktop.Sdk//22.08' --requirements-file='requirements.txt' --output pypi-dependencies
5-
flatpak-builder --state-dir='../../../../flat_state' --user --install --force-clean ../../../../flat ../../../org.aimodels.aiy.json --force-clean
5+
flatpak-builder --state-dir='../../../../flat_state' --user --install --force-clean ../../../../flat ../../../org.draupnerdata.oai.json --force-clean

resources/config.py

+4-10
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def check_config(console):
1919
if not get_api_key():
2020
os_uname = os.uname()
2121

22-
console.print("--[Aiy - CLI Assistant]-------\n"
22+
console.print("--[oai - CLI Assistant]-------\n"
2323
"\n"
2424
"OpenAI API key not found. Please follow these steps to get the API key:\n"
2525
" 1. Go to OpenAI website (https://openai.com/api/login)\n"
@@ -28,18 +28,12 @@ def check_config(console):
2828
" 4. Create a New Secret Key\n"
2929
" 4. Copy the API key\n"
3030
"\n"
31-
"The queries sent to OpenAI contain your OS and architecture information, as well as the "
32-
"question you asked. This is so that responses will be catered to you as much as possible\n"
33-
"Example:\n"
34-
" " + platform.platform() + "\n"
35-
" " + os_uname.version + "\n"
36-
" " + os.environ.get("SHELL", "").split("/")[-1] + "\n"
3731
"Please be advised that responses from OpenAI's API are not guaranteed to be accurate. "
3832
"Use at your own risk.\n")
3933
key = prompt_new_key()
4034
set_api_key(key)
4135
if not get_model():
42-
set_model("text-davinci-003")
36+
set_model("chatgpt-3.5-turbo")
4337
if not get_expert_mode():
4438
set_expert_mode("false")
4539

@@ -130,5 +124,5 @@ def get_expert_mode():
130124
_config_dir = os.path.dirname(os.path.realpath(__file__))
131125
_config_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), ".env")
132126
else:
133-
_config_dir = appdirs.user_config_dir("aiy-config")
134-
_config_file = os.path.join(_config_dir, "aiy-config.ini")
127+
_config_dir = appdirs.user_config_dir("oai-config")
128+
_config_file = os.path.join(_config_dir, "oai-config.ini")

resources/install/win/installer.cfg

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[Application]
2-
name=aiy
2+
name=oai
33
version=0.5.0
44
# How to launch the app - this calls the 'main' function from the 'myapp' package:
5-
entry_point=aiy:main
6-
publisher=VisionInit
5+
entry_point=oai:main
6+
publisher=DraupnerData
77
icon=resources/icons/icon.ico
88
license_file=LICENSE
99

@@ -25,7 +25,7 @@ extra_wheel_sources = pynsist_whls/
2525
[Build]
2626

2727
nsi_template=resources/install/win/installer.nsi
28-
installer_name=aiy-windows-installer.exe
28+
installer_name=oai-windows-installer.exe
2929

3030
[Command aimm]
31-
entry_point=aiy:main
31+
entry_point=oai:main

snapcraft.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: aiyy
1+
name: oai
22
base: core20
33
version: '0.2'
4-
summary: CLI assistant for technical information
4+
summary: CLI OpenAI assistant for questions
55
description: |
6-
Get technical information on the command line with ease using AIY. Simply type in your question as the prompt and
6+
Get information on the command line with ease using OAI. Simply type in your question as the prompt and
77
receive a beautifully formatted and helpful response. This snap also has options for resetting the API key and
88
toggling warnings.
99
architectures:
@@ -12,10 +12,10 @@ grade: devel
1212
confinement: devmode
1313

1414
apps:
15-
aiyy:
16-
command: bin/aiyy
15+
oai:
16+
command: bin/oai
1717

1818
parts:
19-
aiyy:
19+
oai:
2020
plugin: python
21-
source: https://github.com/visioninit/aiy.git
21+
source: https://github.com/draupner1/oai.git

0 commit comments

Comments
 (0)