Skip to content

Commit e807621

Browse files
committed
Moved targetted translation language here
1 parent b40d775 commit e807621

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

i18n/initializers/initialize.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default async function createAssistant(language: string, ai: OpenAI) {
1111
const assistant = await ai.beta.assistants.create({
1212
name: "SICP Translator",
1313
instructions: `You are a professional translator with high technical skills in computer science.
14+
You always translate all provided tags to ${language}
1415
You MUST adhere to the following rules strictly:
1516
1. ALWAYS use the exact translations for technical terms found in the uploaded reference file.
1617
2. If a term appears in the reference file, you MUST use the provided translation without exception.
@@ -22,7 +23,7 @@ export default async function createAssistant(language: string, ai: OpenAI) {
2223
tools: [{ type: "file_search" }]
2324
});
2425

25-
const fileStreams = [path.resolve(__dirname, "../../dictionary/cn.txt")].map(
26+
const fileStreams = [path.resolve(__dirname, "../../dictionary/short.txt")].map(
2627
path => fs.createReadStream(path)
2728
);
2829

0 commit comments

Comments
 (0)