Commit Graph

15 Commits

Author SHA1 Message Date
Matt Low 4e3976fc73 Remove Get prefix from Store methods
It feels better this way (and to the rest of Go, apparently)
2023-11-13 00:20:54 +00:00
Matt Low b87c3ffc53 Implement `lmcli view [conversation]` with completions
Separate out logic to retrieve a message's "friendly" role (System,
User, Assistant)
2023-11-12 23:33:16 +00:00
Matt Low b0a1299e0b Implement `lmcli ls` 2023-11-12 14:30:42 -07:00
Matt Low ae424530f9 Parameterize the openai model used
Add `openai.defaultConfig` to set the default, will allow overriding
with CLI flag
2023-11-09 06:07:52 +00:00
Matt Low 168e0cf5d3 Parameterize maxTokens
Minor formatting/commet changes
2023-11-05 18:45:12 +00:00
Matt Low 6eca84dab8 Pull message rendering into its own method 2023-11-05 08:50:07 +00:00
Matt Low 2c64ab501b Treat the system message like any other
Removed the system parameter on ChatCopmletion functions, and persist it
in conversations as well.
2023-11-05 07:55:07 +00:00
Matt Low 3d518efd6f Implement persistence for `lmcli new` 2023-11-05 07:47:24 +00:00
Matt Low bb895460ad Formatting 2023-11-05 06:55:38 +00:00
Matt Low 794ccc52ff Show waiting animation while waiting for LLM response 2023-11-05 06:50:28 +00:00
Matt Low 200ec57f29 Run gofmt/goimports on go sources 2023-11-04 22:56:31 +00:00
Matt Low 4590f1db38 Better `lmcli prompt` input handling 2023-11-04 22:53:09 +00:00
Matt Low ca45159ec3 Change `msgCmd` to `replyCmd` 2023-11-04 22:37:51 +00:00
Matt Low 04478cbbd1 Refactor store and config handling
- Moved global `store` and `config` variables to cli.go
- Add Fatal() function for outputting an error and exiting
2023-11-04 14:22:16 -06:00
Matt Low 16454a0bbd Project restructure
Moved source files into cmd/ and pkg/ directories
2023-11-04 13:35:23 -06:00