File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,10 @@ async function getPrompt(content) {
163
163
return await getPhiPrompt ( content )
164
164
}
165
165
166
+ if ( model . startsWith ( "qwen" ) ) {
167
+ return await getQwenPrompt ( content )
168
+ }
169
+
166
170
return await getLlamaPrompt ( content )
167
171
}
168
172
@@ -193,6 +197,19 @@ async function getLlamaPrompt(content) {
193
197
"<|start_header_id|>assistant<|end_header_id|>"
194
198
}
195
199
200
+ async function getQwenPrompt ( content ) {
201
+ return "<|im_start|>system\n" +
202
+ "You are an expert in reading and summarizing emails." +
203
+ "<|im_end|>" +
204
+ "<|im_start|>system\n" +
205
+ "The email content is: " + content +
206
+ "<|im_end|>" +
207
+ "<|im_start|>user\n" +
208
+ await getInstructions ( ) +
209
+ "<|im_end|>" +
210
+ "<|im_start|>assistant"
211
+ }
212
+
196
213
/**
197
214
* Call Ollama to generate a summary of the email
198
215
* @param content The plain text context of the email
Original file line number Diff line number Diff line change 44
44
< option value ="llama3.2 "> llama3.2</ option >
45
45
< option value ="llama3.3 "> llama3.3</ option >
46
46
< option value ="phi4 "> phi4</ option >
47
+ < option value ="qwen2.5 "> qwen2.5</ option >
47
48
</ select >
48
49
< p > This is the model used to summarize the email. These models must be
49
50
pulled by Ollama with the command "ollama pull <modelname>".</ p >
You can’t perform that action at this time.
0 commit comments