spaceshelter / orbitar

Experimental collective social/blogging platform with self-regulation.
MIT License
62 stars 24 forks source link

ChatGPT integration, Preffered lang for translation #351

Closed 4vanger closed 1 year ago

4vanger commented 1 year ago

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:

Aivean commented 1 year ago

Buttons hidden under "...":

image image
Aivean commented 1 year ago

Styled language select:

image