Skip to content

Commit 6e76aef

Browse files
committed
update readme
1 parent 8020aae commit 6e76aef

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ This fork does the following:
1818
- **Model definition inheritance**: Define models that inherit other model parameters
1919
- **Refactored for idiomatic Lua** and neovim plugin style
2020
- **Simplified command system** with explicit configuration
21+
- **Chat History**: Add example messages in a command definition
2122
- **Tests with plenary library**
2223
- **Fixed statusline** integration
2324

@@ -362,3 +363,10 @@ popups
362363
})
363364

364365
```
366+
367+
## API
368+
369+
`setup({config})`: setup plugin
370+
`select_model()`: list local defined and remote available models
371+
`cancel_request()`: Cancel ongoing request
372+

tests/message_render_spec.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ local config = require("codegpt.config")
33
local Messages = require("codegpt.providers.messages")
44
local Commands = require("codegpt.commands")
55

6-
local function should_fail(fun)
7-
local stat = pcall(fun)
8-
assert(not stat, "Function should have errored")
9-
end
10-
116
describe("message templates", function()
127
before_each(function()
138
codegpt.setup()

0 commit comments

Comments
 (0)