tangled
alpha
login
or
join now
althaea.zone
/
candy
0
fork
atom
neovim
0
fork
atom
overview
issues
pulls
pipelines
drop llm.lua
marshmallow
4 months ago
c73eea84
56706da9
-40
1 changed file
expand all
collapse all
unified
split
candy
lua
marshmallow
llm.lua
-40
candy/lua/marshmallow/llm.lua
···
1
1
-
require("minuet").setup({
2
2
-
virtualtext = {
3
3
-
auto_trigger_ft = { "lua" },
4
4
-
keymap = {
5
5
-
-- accept whole completion
6
6
-
accept = "<A-A>",
7
7
-
-- accept one line
8
8
-
accept_line = "<A-a>",
9
9
-
-- accept n lines (prompts for number)
10
10
-
-- e.g. "A-z 2 CR" will accept 2 lines
11
11
-
accept_n_lines = "<A-z>",
12
12
-
-- Cycle to prev completion item, or manually invoke completion
13
13
-
prev = "<A-[>",
14
14
-
-- Cycle to next completion item, or manually invoke completion
15
15
-
next = "<A-]>",
16
16
-
dismiss = "<A-e>",
17
17
-
},
18
18
-
},
19
19
-
20
20
-
provider = "openai_compatible",
21
21
-
request_timeout = 2.5,
22
22
-
throttle = 1500,
23
23
-
debounce = 600,
24
24
-
provider_options = {
25
25
-
openai_compatible = {
26
26
-
api_key = "OPENROUTER_KEY",
27
27
-
end_point = "https://openrouter.ai/api/v1/chat/completions",
28
28
-
model = "deepseek/deepseek-chat-v3-0324",
29
29
-
name = "Openrouter",
30
30
-
optional = {
31
31
-
max_tokens = 56,
32
32
-
top_p = 0.9,
33
33
-
provider = {
34
34
-
-- Prioritize throughput for faster completion
35
35
-
sort = "throughput",
36
36
-
},
37
37
-
},
38
38
-
},
39
39
-
},
40
40
-
})