Commit graph

220 commits

Author SHA1 Message Date
0a98049f21 Update get_api to not have any required arguments 2024-06-23 14:46:18 -05:00
415e48496a update llama backend for llama-3-instruct style 2024-06-23 14:46:18 -05:00
aa1cb90c47 Update anthropic back-end 2024-06-23 14:46:18 -05:00
271792ed8c
Merge pull request #37 from jepler/actions-churn
update actions
2024-05-12 21:19:53 -05:00
adec4385ad one more action bump 2024-05-12 21:17:02 -05:00
5439ded9e8 update actions 2024-05-12 21:12:40 -05:00
ba1adecfbb
Update README.md 2024-05-08 19:46:28 -05:00
2475dc2fcb
Merge pull request #36 from jepler/misc-improvements
Various improvements
2024-05-08 19:42:09 -05:00
77297426d6 ruff & mypy fixes 2024-05-08 11:31:31 -05:00
7ea2649640 Commandline improvements
* @FILE arguments
 * -s:filename searches relative to the configuration path

this makes it easier to create whole preset configurations
2024-05-08 10:10:53 -05:00
90faa3d7a2 click deprecated MultiCommand; the replacement is Group. 2024-05-08 09:01:55 -05:00
f725e01114 openai: Allow specification of API URL
This is useful as some providers (including llama.cpp)
have an "openai-compatible API"
2024-05-01 20:40:54 -05:00
79997215ad
Merge pull request #35 from jepler/misc-improvements
switch openai default to gpt-4-turbo
2024-04-10 09:56:54 -05:00
08f3fa82d6 fix typing errors 2024-04-10 09:17:27 -05:00
afe22d0fdd chap ask: add --stdin flag 2024-04-10 08:33:55 -05:00
25dee73c0f Distinguish an empty system message from an unspecified one
.. when deciding whether to use the API's default system message
2024-04-10 08:33:27 -05:00
95a0a29055 Add -@ for reading system prompt from a file
`-S @...` did not have good ergonomics for completion.
2024-04-10 08:32:49 -05:00
61af71d0bd switch openai default to gpt-4-turbo 2024-04-10 08:31:28 -05:00
368275355b
Merge pull request #34 from jepler/mistral
Add mistral.ai backend
2024-03-09 20:57:48 -06:00
ddc5214231 Add mistral backend 2024-03-09 20:53:38 -06:00
9eef316a5c Change up llama.cpp prompting
this gives good results on mixtral.
2024-03-09 20:51:16 -06:00
fac2dfbdc3
Merge pull request #33 from jepler/anthropic-claude
Add an anthropic back-end
2024-03-08 14:26:56 -06:00
d63d8e6fe2 Add an anthropic back-end 2024-03-08 14:19:31 -06:00
2995b1e1aa
Merge pull request #31 from jepler/reduce-code-block-jank
Show code blocks at full height
2023-12-12 21:50:08 -06:00
59d9e68119
Show code blocks at full height
...well, for any reasonable height anyway.

When scrollbars appear the refreshing output tends to get janky, so
just allow the code region (called a fence in markdown, apparently)
to be up to 9999 lines tall.
2023-12-12 21:38:23 -06:00
9f6ace394a
Merge pull request #30 from jepler/multiline2
Switch chap tui to a multiline text field
2023-12-12 17:05:05 -06:00
86059a5d85
re-work backend parameters again to work on 3.9 and 3.11 2023-12-12 17:01:41 -06:00
877246ac28
document chap tui a bit more in the README 2023-12-12 16:08:54 -06:00
a42a349bb7
fix typing of main function 2023-12-12 16:03:08 -06:00
322ae8b8e2
switch to pyperclip for yanking chat text 2023-12-12 16:02:48 -06:00
8106368ca2
tui: add a flag to replace the system message in an existing session 2023-12-09 09:56:30 -06:00
dfb49bc12e
fix image in README 2023-12-07 20:23:22 -06:00
e97a99047e
enable ruff rules in preview mode 2023-12-02 15:50:01 -06:00
4f4c6522b3
drop no longer needed pylint disables 2023-12-02 15:49:47 -06:00
d91425ec6f
remove unneeded pylint disable 2023-12-02 15:45:48 -06:00
5c639ab141
pre-commit autoupdate 2023-12-02 15:37:07 -06:00
f2f7c78e7e
replace black, isort, pylint with ruff
this is faster enough that it's a huge qol win
2023-12-02 15:36:22 -06:00
c16e091a38
OK we're doing 3.9 I guess 2023-12-01 08:42:35 -06:00
ffd152a533
Make alt+enter work (on supported terminals like xfce4-terminal) 2023-12-01 08:41:07 -06:00
4a36cce0e0
Fix parsing of bool-type backend options
this made it necessary to plumb 'ctx' through some additional
places, all to make it easy to call BoolParamType().convert().
2023-12-01 08:38:07 -06:00
5daf7e7d2a
Make it work on 3.9 again
turns out I have some systems where I care about that :)
2023-12-01 08:38:06 -06:00
14f284defc
reorganize to fix errors seen in mypy 2023-11-16 09:43:14 -06:00
ae8c13f7d2
fix streaming output from lorem 2023-11-16 09:29:34 -06:00
89de218708
Switch chap tui to a multiline text field
due to technical limitations in textual there's no way to handle
ctrl-enter (terminal emulator limitation) or alt-enter (textual limitation)
so the submit key becomes F9.

it'd be nice someday to switch between single-line and multiline entry but
not right now.
2023-11-16 09:29:24 -06:00
14e0feaf4c
give a var a better name 2023-11-15 15:57:50 -06:00
59c0ae7ce9
Merge pull request #29 from jepler/metadata
improve project metadata (h/t pyroma)
2023-11-10 16:31:50 -06:00
1aabcf6f0d
improve project metadata (h/t pyroma) 2023-11-10 12:13:35 -06:00
b548797858
Merge pull request #28 from jepler/document-mypy
Document how to run mypy; move mypy settings to pyproject.toml
2023-11-10 12:09:50 -06:00
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