Artikash / Textractor

Extracts text from video games and visual novels. Highly extensible.
GNU General Public License v3.0
2k stars 201 forks source link

ChatGPT extension support #1004

Open RPing opened 1 year ago

RPing commented 1 year ago

ChatGPT API released: https://openai.com/blog/introducing-chatgpt-and-whisper-apis The translation request payload would be like

translate the following sentence in Chinese: "..."
voidpenguin-28 commented 3 weeks ago

So the extension will know game we are play is what id vndb we have in config value?

Correct. Only names for the specified vnid in config will be mapped (even from cache).

SVS002 commented 2 weeks ago

@voidpenguin-28 can you combine 2 extension Textractor.VndbCharNameMapper and Textractor.GptApiTranslate, i mean check what word in text is a name of character and using this like "... is a name and translate to ..." as the text of UserMsgPrefix. some time the word isn't name of character and have another meaning in sentence so using this make AI know to translate, what is name or not.

voidpenguin-28 commented 2 weeks ago

@voidpenguin-28 can you combine 2 extension Textractor.VndbCharNameMapper and Textractor.GptApiTranslate, i mean check what word in text is a name of character and using this like "... is a name and translate to ..." as the text of UserMsgPrefix. some time the word isn't name of character and have another meaning in sentence so using this make AI know to translate, what is name or not.

Ah, now I understand what you meant in your first message a lot better. I'll work on this when I get some time to and will provide an update here when it's available.

hotdogman1234 commented 4 days ago

Hello, it says I need API keys when I tried using your GPT xdll, how can i make this work sir? @voidpenguin-28

voidpenguin-28 commented 3 days ago

Hi, have you received an API key from your OpenAI account and assigned it to this extensions config? If not, you will need to go to your OpenAI account and create or retrieve your API key. Using this API will cost money.

Full extension documentation, with full instructions on how to use this, can be found here for more information: https://github.com/voidpenguin-28/Textractor-ExtraExtensions/tree/main/Textractor.GptApiTranslate

On Mon, Jul 1, 2024, 12:24 AM hotdogman1234 @.***> wrote:

Hello, it says I need API keys when I tried using your GPT xdll, how can i make this work sir? @voidpenguin-28 https://github.com/voidpenguin-28

— Reply to this email directly, view it on GitHub https://github.com/Artikash/Textractor/issues/1004#issuecomment-2199204777, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFGCGD3QG7QQU23KZVV7BWTZKDKYPAVCNFSM6AAAAAAVOPXYK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJZGIYDINZXG4 . You are receiving this because you were mentioned.Message ID: @.***>