Skip to content

Commit

Permalink
fix: rename model to shellgpt
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Jun 16, 2024
1 parent 245b7da commit 42a6ccc
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 17 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
tui:
@ python -m shgpt -t
@ python -m shellgpt -t

repl:
@ python -m shgpt -l
@ python -m shellgpt -l

build: clean
hatch build

clean:
rm -rf build dist shgpt.egg-info
rm -rf build dist shellgpt.egg-info

fix:
ruff check --fix
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export SHELLGPT_API_KEY=<token>
export SHELLGPT_MODEL='@cf/meta/llama-3-8b-instruct'
```

See [conf.py](https://github.com/jiacai2050/shellgpt/blob/main/shgpt/utils/conf.py) for more configs.
See [conf.py](https://github.com/jiacai2050/shellgpt/blob/main/shellgpt/utils/conf.py) for more configs.

## TUI

Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ Repository = "https://github.com/jiacai2050/shellgpt"
Issues = "https://github.com/jiacai2050/shellgpt/issues"

[project.scripts]
sg = "shgpt:main"
shellgpt = "shgpt:main"
sg = "shellgpt:main"
shellgpt = "shellgpt:main"

[tool.hatch.version]
path = "shgpt/version.py"
path = "shellgpt/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"shgpt",
"shellgpt",
"tests",
"pyproject.toml",
"README.md",
Expand All @@ -56,7 +56,7 @@ include = [

[tool.hatch.build.targets.wheel]
include = [
"shgpt",
"shellgpt",
]

# https://github.com/astral-sh/ruff?tab=readme-ov-file#configuration
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions shgpt/app.py → shellgpt/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import sys
from os import makedirs
from .api.ollama import Ollama
from .version import __version__
from .utils.conf import (
API_KEY,
MAX_CHAT_MESSAGES,
Expand All @@ -27,6 +26,7 @@
from .tui.app import ShellGPTApp
from .history import History

__version__ = '0.5.0'

def init_app():
print(f'Create {CONF_PATH}...')
Expand Down Expand Up @@ -143,7 +143,7 @@ def load_system_content_when_necessary(sc):

def main():
parser = argparse.ArgumentParser(
prog='shgpt',
prog='sg',
description='Chat with LLM in your terminal, be it shell generator, story teller, linux-terminal, etc.',
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion shgpt/utils/common.py → shellgpt/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import sys
import pyperclip

from shgpt.utils.conf import DEFAULT_IMAGE_DIR, IS_TTY
from shellgpt.utils.conf import DEFAULT_IMAGE_DIR, IS_TTY

IS_VERBOSE = False

Expand Down
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion shgpt/version.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/test_common.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from shgpt.utils.common import extract_code, prepare_prompt
from shgpt.utils.conf import DEFAULT_IMAGE_DIR
from shellgpt.utils.common import extract_code, prepare_prompt
from shellgpt.utils.conf import DEFAULT_IMAGE_DIR
from os import path
import unittest

Expand Down
4 changes: 2 additions & 2 deletions tests/test_llm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from shgpt.api.ollama import Ollama
from shellgpt.api.ollama import Ollama
import unittest

from shgpt.utils.conf import SYSTEM_CONTENT
from shellgpt.utils.conf import SYSTEM_CONTENT


class TestLLM(unittest.TestCase):
Expand Down

0 comments on commit 42a6ccc

Please sign in to comment.