We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0157cd1 commit 2f8fbe9Copy full SHA for 2f8fbe9
1 file changed
dev-demo/resources/translations.ts
@@ -1,4 +1,5 @@
1
2
+import CompletionAdapterOpenAIChatGPT from "../../adapters/adminforth-completion-adapter-open-ai-chat-gpt/index.js";
3
import AdminForth, { AdminForthDataTypes, AdminForthResourceInput } from "../../adminforth/index.js";
4
import I18nPlugin from "../../plugins/adminforth-i18n/index.js";
5
import { randomUUID } from 'crypto';
@@ -35,6 +36,11 @@ export default {
35
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
+ }),
43
+ // translateLangAsBCP47Code: {sr: 'sr-Cyrl'},
44
}),
45
46
],
0 commit comments