Commit graph

171 commits

Author SHA1 Message Date
e966d62a1b
mypy 1.7.0 has a serious bug, avoid it 2023-11-10 12:04:51 -06:00
4a35193fa3
simplify Makefile too 2023-11-10 09:10:47 -06:00
52cb9ab2df
Document how to run mypy; move mypy settings to pyproject.toml 2023-11-10 08:14:24 -06:00
08b221d760
Re-jigger EncodingMeta to be less fragile
It seems that only gpt-3.5-turbo-0301 is the oddity, mis-counting is
only a few tokens here and there, and tiktoken.encoding_for_model
works for evergreen names like "gpt-3.5-turbo".
2023-11-09 11:45:35 -06:00
c8d2ffbc15
Fix "| None" types in backend options 2023-11-09 11:25:39 -06:00
628994c229
Add py.typed 2023-11-09 11:21:45 -06:00
18623ad3eb
Fix running mypy after __version__.py is created 2023-11-09 11:21:38 -06:00
1e856e4547
Add gpt-4-1106-preview (gpt-4-turbo) to model list 2023-11-09 10:35:07 -06:00
4454071e87
Merge pull request #27 from jepler/refactor-type-etc
Refactor and add typing information
2023-11-09 10:34:47 -06:00
a48015e0db
use same while-loop condition as below 2023-11-09 10:09:36 -06:00
b82ea41430
remove dead assignment 2023-11-09 10:08:22 -06:00
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