Thank you for the contribution adding this module to serve openai a translator for TMGMT module.
I'd like to propose upgrade the OpenAI model to newer ones so it can be up-to-date and be more capable of the translation.
Completions models in the module are all legacy model and will be shutdown on 4th Jan, 2024. OpenAI recommend to use the new Chat model gpt-4, gpt-3.5-turbo, gpt-3.5-turbo-16k which cost only 1/10.
Being able to use gpt-3.5-turbo-16k will be more capable for formatted Text using HTML code.
Due to different response data structure, the prompt will no longer need to replace token "%text%"
Fixed
1.0
Code