Skip to content

Commit

Permalink
Feature/prompt lib (#21)
Browse files Browse the repository at this point in the history
* working on auto session name
* fix slow startup when you have lots of local models Close #16
* fix app is slow to startup when you have lots of large chat sessions Close #17 
* fix some footer items are not clickable Close #18 
* fix naming a session always adds a "1" to the end Close #19 
* fix crash when app cant reach ollama server to get PS info Close #20 
* fix license not showing in model details view
* fix pause on chat model change and details need loading
* fixed many session related bugs
* added new event system for chat manager related functions
* added start of custom prompt tab
* massive refactor of internals
* added cli and env options to enable llm auto session naming
* added chat session token stats
* finished initial custom prompt add / edit / delete dialog
* add slash command with auto complete to load custom prompt
  • Loading branch information
paulrobello authored Aug 3, 2024
1 parent 6f83a07 commit 77cb9e1
Show file tree
Hide file tree
Showing 77 changed files with 3,773 additions and 981 deletions.
28 changes: 15 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
default_stages: [pre-commit, pre-push]
fail_fast: true
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v4.6.0
hooks:
- id: check-yaml
- id: check-merge-conflict
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-docstring-first
- id: check-json
- id: check-toml
- id: detect-private-key
- id: mixed-line-ending
- id: check-yaml
- id: check-json
- id: pretty-format-json
args: [--autofix, --no-sort-keys]
exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/
Expand All @@ -23,17 +24,18 @@ repos:
# - message_id: pyupgrade

- repo: https://github.com/psf/black
rev: 22.10.0
rev: 24.4.2
hooks:
- id: black
args: [-t, py310, -t, py311, -t, py312]
exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/

- repo: https://github.com/asottile/reorder-python-imports
rev: v3.13.0
hooks:
- id: reorder-python-imports
args: [--py39-plus, --add-import, 'from __future__ import annotations']
exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/
#- repo: https://github.com/asottile/reorder-python-imports
# rev: v3.13.0
# hooks:
# - id: reorder-python-imports
# args: [--py39-plus, --add-import, "from __future__ import annotations"]
# exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/

#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.10.1
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ py-version = 3.11.0
max-line-length=120

[MESSAGES CONTROL]
disable=fixme, too-many-instance-attributes, too-many-public-methods, too-few-public-methods, too-many-ancestors, too-many-locals
disable=fixme, too-many-instance-attributes, too-many-public-methods, too-few-public-methods, too-many-ancestors, too-many-locals, duplicate-code

[SIMILARITIES]
min-similarity-lines = 10
Expand Down
5 changes: 5 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ simplejson = "*"
attrs = "*"
certifi = "*"
requests-file = "*"
#textual = { version = "==0.74.0", extras = ["syntax"] }
textual = { version = "*", extras = ["syntax"] }
asyncio = "*"
humanize = "*"
Expand All @@ -22,6 +23,9 @@ ollama = "*"
bs4 = "*"
docker = "*"
textual-fspicker = "*"
google-api-python-client = "*"
youtube-transcript-api = "*"
isodate2 = "*"

[dev-packages]
mypy = "*"
Expand All @@ -37,6 +41,7 @@ types-requests = "*"
types-beautifulsoup4 = "*"
pydevd_pycharm = "*"
pre-commit = "*"
google-api-python-client-stubs = "*"

[requires]
python_version = "3.11"
Loading

0 comments on commit 77cb9e1

Please sign in to comment.