1537d1145c
use docstrings instead of ellipsis for method stub
2023-11-09 10:07:15 -06:00
5f91717900
bump python version in workflows too
2023-11-09 09:56:52 -06:00
edfb21e41c
avoid typing error during ci
2023-11-09 09:55:29 -06:00
0c84e1f218
bump python version
2023-11-09 09:55:12 -06:00
fc69800594
Fully type annotate mypy
...
with two (commented) exceptions
2023-11-09 09:50:04 -06:00
eac422ff17
Don't reassign name "Markdown"
2023-11-09 09:50:03 -06:00
8c0f20e38a
Fix type hint
2023-11-09 09:50:03 -06:00
396ef3164b
Reorganize session, ditching dataclasses_json
...
this needs more testing (or more typing) and it breaks the plugins
I just released. oof.
2023-11-09 09:50:03 -06:00
29cc2edfb3
Merge pull request #26 from jepler/plugins-ux-etc
...
Added (as separate github repos) example plugins to prove the concept
2023-11-08 17:38:41 -06:00
e0786a0fbf
Translate dashes to underscores in API names
...
so that `--backend openai-chatgpt` works like `--backend openai_chatgpt`
2023-11-08 17:31:58 -06:00
715dc2b57a
Plugins!
2023-11-08 17:31:08 -06:00
f29358379d
Merge pull request #22 from jepler/add-coc-contributing
...
Add contributing and code-of-conduct documents
2023-10-09 08:46:08 +01:00
4c10048708
error found in proofreading
2023-10-09 08:43:31 +01:00
fb5168a6fa
fix link markdown
2023-10-09 08:42:21 +01:00
d1277c9d8b
link to new documents
2023-10-09 08:40:10 +01:00
00bbd7dd65
Start a document on how to contribute
2023-10-09 08:38:51 +01:00
84a32c7dc6
Attribute overall copyright to Organization for Ethical Source
2023-10-09 08:26:15 +01:00
3c6db7d6db
Merge pull request #20 from peterkaminski/pk-readability
...
PK readability improvements
2023-10-08 17:12:17 +01:00
Peter Kaminski
06e728876d
shorter message can fit on one line
...
`pre-commit` black wants it on one line.
2023-10-08 08:04:36 -07:00
Peter Kaminski
b4bb5d028f
differentiate shim and library
2023-10-08 07:04:12 -07:00
Peter Kaminski
0b886443e9
differentiate shim and library
2023-10-08 06:47:58 -07:00
Peter Kaminski
f6b304d105
Tiny wording change
...
"call" -> "use the"
2023-10-08 06:32:10 -07:00
Peter Kaminski
88750a26b6
flesh out README and make readability improvments
2023-10-08 06:16:45 -07:00
Peter Kaminski
6f7da1910f
make script more readable; no operational changes
2023-10-08 06:15:51 -07:00
Peter Kaminski
a955b4ebc4
if venv is used, it's nice to ignore it
2023-10-08 06:13:28 -07:00
36a4ebf487
Merge pull request #15 from jepler/issue5
...
Dynamically load requirements.txt in pyproject.toml
2023-10-07 09:30:25 +01:00
6b201e6a49
fix markdown
2023-10-07 09:29:33 +01:00
6af267cb47
update README.md
2023-10-07 09:27:49 +01:00
6298f5cac7
this script allows python -mchap in top-level to work
2023-10-07 08:19:25 +01:00
7cf8496302
Merge pull request #18 from jepler/misc-ux
...
Misc ux improvements
2023-10-02 18:33:08 -05:00
94562de018
ctrl-c, not ctrl-q, is quit
2023-10-02 15:19:28 -05:00
3852855a06
Fix an error toggling the system message in empty session
2023-10-02 15:19:28 -05:00
9ed7dd97cf
prevent resubmit/redraft of the system message
2023-10-02 15:19:28 -05:00
bec3e67be3
prevent focusing into markdown while completing
...
this could lead to problems e.g., if you hit the "resubmit" key
2023-10-02 15:19:28 -05:00
f9d3575964
erase input value even for interrupted call
...
user can redraft
2023-10-02 15:19:28 -05:00
5574d31e0c
Say how pad seems to be helping
2023-10-02 15:19:17 -05:00
4e96c2928b
rename 'delete to end' as 'redraft'
2023-10-02 14:30:14 -05:00
ad1d956dad
Further improve UX during generation
...
.. by adding a LoadingIndicator and styling the button nicer
2023-10-02 14:30:13 -05:00
892b66aa39
Merge pull request #17 from jepler/add-codespell
...
add codespell to pre-commit
2023-10-02 10:26:06 -05:00
9351b4825d
add codespell
2023-10-02 10:01:12 -05:00
a956dc6bff
Merge pull request #16 from jepler/cancel
...
chap tui: add ability to cancel generation with escape key
2023-10-02 06:00:45 -05:00
9d03cd2210
chap tui: add ability to cancel generation with escape key
...
also reduces jank during the initial load; the app is mounted
with all conversation displayed & scrolled to the bottom.
2023-10-02 05:28:50 -05:00
9d86e30f69
Dynamically load requirements.txt in pyproject.toml
...
This allows use of `pip install -r requirements.txt` by users who prefer
that way of trying out the package, while not affecting my typical usage.
This does create a dependency on a beta feature of setuptools, so it
could be fragile.
Closes : #5
2023-10-02 03:57:58 -05:00
f3bf17ca2f
Merge pull request #14 from jepler/huggingface
...
Add huggingface back-end
2023-09-29 10:18:58 -05:00
b6fa44f53e
Add huggingface back-end
...
defaults to mistral 7b instruct
2023-09-29 10:14:05 -05:00
2c04964b93
Improve display of default string params with special chars
2023-09-29 10:12:29 -05:00
90a4f17910
increase first-token timeout
2023-09-29 09:02:52 -05:00
6792eb0960
set some stop tokens
2023-09-29 08:45:54 -05:00
ea03aa0f20
Use llama2-instruct style prompting
...
this also works well with mistral-7b-instruct
See https://github.com/facebookresearch/llama/blob/v2/llama/generation.py
2023-09-29 08:39:33 -05:00
9fe01de170
Add ability to toggle off history context in tui
2023-09-29 08:39:33 -05:00