Skip to content

Commit 0cd2cff

Browse files
authored
Add prompt constants file (#10618)
1 parent 75f1eea commit 0cd2cff

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
import Foundation
10+
11+
public enum Constants {
12+
public static let qwen3PromptTemplate = """
13+
<|im_start|>system
14+
You are a helpful assistant.
15+
<|im_end|>
16+
<|im_start|>user
17+
%@<|im_end|>
18+
<|im_start|>assistant
19+
<think>
20+
21+
</think>
22+
23+
24+
25+
"""
26+
27+
public static let llama3PromptTemplate = "<|begin_of_text|><|start_header_id|>user<|end_header_id|>%@<|eot_id|><|start_header_id|>assistant<|end_header_id|>"
28+
}

0 commit comments

Comments
 (0)