Sorry - pretty big PR.
Added ChatGPT integration. 2 use cases:
1) "random post/comment interpretation" - lots of predefined styles, later we should consider adding more.
2) "annotate post/comment"
3) user setting for preferred lang and google translate will use it
4) always showing translate button because we don't know now if comment is writted on user's preferred lang
5) extra layer of protection when inserting comment/post content - to avoid script injection through GPT prompts
Followups:
1) rename "/translate" to "/interpreter", TranslatingManager -> InterpretationManager
2) save preferred language into DB
3) translate post titles
4) make more money for GPT
5) remove fasttext/make it honor preferred lang
Latest design:
Sorry - pretty big PR. Added ChatGPT integration. 2 use cases: 1) "random post/comment interpretation" - lots of predefined styles, later we should consider adding more. 2) "annotate post/comment" 3) user setting for preferred lang and google translate will use it 4) always showing translate button because we don't know now if comment is writted on user's preferred lang 5) extra layer of protection when inserting comment/post content - to avoid script injection through GPT prompts
Followups: 1) rename "/translate" to "/interpreter", TranslatingManager -> InterpretationManager 2) save preferred language into DB 3) translate post titles 4) make more money for GPT 5) remove fasttext/make it honor preferred lang Latest design: