Skip to content

Commit f8a3d2c

Browse files
committed
Switch to Qwen2.5-Coder.
Signed-off-by: Gabriel Linder <linder.gabriel@gmail.com>
1 parent 9d63048 commit f8a3d2c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.vim-ai.vim

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
let s:vim_ai_endpoint_url = "http://localhost:11434/v1/chat/completions"
22

3-
let s:vim_ai_model = "mistral-nemo:12b-instruct-2407-q8_0"
4-
let s:vim_ai_temperature = 0.3
3+
let s:vim_ai_model = "qwen2.5-coder:14b-instruct-q6_K"
4+
let s:vim_ai_temperature = 0.7
5+
let s:vim_ai_top_p = 0.8
56

67
let s:vim_ai_chat_prompt =<< trim END
78
>>> system
@@ -10,19 +11,21 @@ You are a helpful code assistant.
1011

1112
Assume that all unknown symbols are properly initialized elsewhere.
1213

13-
Add a syntax type after ``` to enable proper syntax highlighting in fenced code blocks.
14+
Add a syntax type after ``` to enable proper syntax highlighting.
1415
END
1516

1617
let s:vim_ai_edit_prompt =<< trim END
1718
>>> system
1819

1920
You will act as a code generator.
2021

21-
Do not write any introduction, conclusion, or explanation.
22+
You must satisfactorily meet the request with as few changes as possible.
23+
24+
Write your answer directly as plain text, without fences or headings to delimit it.
2225

23-
Do not use fenced code blocks.
26+
Do not write any introduction, conclusion, or explanation.
2427

25-
Respect the original indentation level.
28+
Make sure to keep the initial indentation level.
2629
END
2730

2831
let s:vim_ai_chat_config = #{
@@ -31,6 +34,7 @@ let s:vim_ai_chat_config = #{
3134
\ model: s:vim_ai_model,
3235
\ initial_prompt: s:vim_ai_chat_prompt,
3336
\ temperature: s:vim_ai_temperature,
37+
\ top_p: s:vim_ai_top_p,
3438
\ endpoint_url: s:vim_ai_endpoint_url,
3539
\ enable_auth: 0,
3640
\ max_tokens: 0,
@@ -47,6 +51,7 @@ let s:vim_ai_edit_config = #{
4751
\ model: s:vim_ai_model,
4852
\ initial_prompt: s:vim_ai_edit_prompt,
4953
\ temperature: s:vim_ai_temperature,
54+
\ top_p: s:vim_ai_top_p,
5055
\ endpoint_url: s:vim_ai_endpoint_url,
5156
\ enable_auth: 0,
5257
\ max_tokens: 0,

0 commit comments

Comments
 (0)