We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4d078b commit 000b770Copy full SHA for 000b770
1 file changed
dev-demo/resources/translations.ts
@@ -36,10 +36,16 @@ export default {
36
// optional field store list of completed translations
37
// will hel to filter out incomplete translations
38
completedFieldName: 'completedLangs',
39
- completeAdapter: new CompletionAdapterOpenAIChatGPT({
40
- openAiApiKey: process.env.OPENAI_API_KEY as string,
41
- model: 'gpt-5-mini',
42
- }),
+ ...(process.env.OPENAI_API_KEY ?
+ {
+ completeAdapter: new CompletionAdapterOpenAIChatGPT({
+ openAiApiKey: process.env.OPENAI_API_KEY as string,
43
+ model: 'gpt-5-mini',
44
+ }),
45
+ // translateLangAsBCP47Code: {sr: 'sr-Cyrl'},
46
+ parallelTranslationLimit: 1
47
+ }
48
+ : {}),
49
// translateLangAsBCP47Code: {sr: 'sr-Cyrl'},
50
parallelTranslationLimit: 1
51
}),
0 commit comments