#GPTranslator changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
##Unreleased
- Count spent to check how much are using the API
- Compare changes and only translate the diferent one
- Inproved translation speed
- Now, if the translation is not correct, the user can ask for a new one
- Added more examples to show script capabilities
- Smaller prompt to reduce token usage
- Repository renamed from GPTranslate to GPTranslator
- Now the example JO
- now check the proper values of the parameters not only when the values are manually filled
- Chat completion prompt changed to reduce tokens usage but maintaining same results
- context.txt example changed to add more examples about how to get more hints to the model in order to improve translations
- Now header values are related to config variables
- Requirements.txt add new required libs
- After translation, the script ask to confirm translations that have sensibly diferent size from the original text
- config.json file to maintain global configuration object
- Version number changed to adheres to Semantic Versioning
- Some variables were translated or capitalized when they appeared within a sentence with abbreviations or acronyms
- Now the JSON output is properly indented
-
Command-Line Interface: GPTranslator is now equipped with a command-line interface, allowing users to run the tool directly from the console. This makes it easy to integrate GPTranslator into scripts and automated workflows
-
JSON Input: The tool now supports reading JSON files as input. It can recursively traverse the JSON structure and translate all string values. GPTranslator can handle JSON objects, arrays, and primitive types efficiently
-
Target Language Support: GPTranslator now supports translation into multiple target languages. Users can specify the target language using the ISO 639-1 language code. GPTranslator covers all ISO 639-1 language codes, providing flexibility for translation needs
-
Contextual Translation: To ensure accurate translations, GPTranslator now supports contextual translation. Users can provide a description of the technical context, including language type, technical terminology, language context, and even forced translations or the meaning of specific acronyms. This contextual information helps improve the accuracy of the translations Prompt Injection Protection: GPTranslator now incorporates prompt injection protection to maintain the integrity of input and output data. This security feature safeguards against any malicious or unintended modifications during the translation process
-
OpenAI API connection: Conected to open AI chat completion API to get the text translations