Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat gpt API KEY ERROR #189

Closed
Dymrim opened this issue Dec 22, 2024 · 5 comments
Closed

Chat gpt API KEY ERROR #189

Dymrim opened this issue Dec 22, 2024 · 5 comments

Comments

@Dymrim
Copy link

Dymrim commented Dec 22, 2024

When I use the program, I get the following error in the terminal on Windows:
KeyError: 'Open AI GPT'
I checked, and my API key is from a project I generated, and I have available credits.

@ZuagirC
Copy link

ZuagirC commented Jan 9, 2025

same problem here and i have a Valid API Key !

KeyError: 'Open AI GPT !?
translate\modules\utils\pipeline_utils.py", line 227, in validate_settings
if not validate_translator(main_page, source_lang, target_lang):
File "C:\Users\crisl\Desktop 2\comic-translate\modules\utils\pipeline_utils.py", line 185, in validate_translator
if 'GPT' in translator_tool and not settings['credentials']['Open AI GPT']['api_key']:
KeyError: 'Open AI GPT

@ogkalu2
Copy link
Owner

ogkalu2 commented Jan 12, 2025

@ZuagirC @Dymrim
Should be fixed. Try again now

@ZuagirC
Copy link

ZuagirC commented Jan 12, 2025

I have to update something or reinstall the entire repo ? always the same error message
i really don't understand
By advance many thanks for your help !
-->
line 380, in start_batch_process
if not validate_settings(self, source_lang, target_lang):
File "C:\Users\crisl\Desktop 2\comic-translate\modules\utils\pipeline_utils.py", line 227, in validate_settings
if not validate_translator(main_page, source_lang, target_lang):
File "C:\Users\crisl\Desktop 2\comic-translate\modules\utils\pipeline_utils.py", line 185, in validate_translator
if 'GPT' in translator_tool and not settings['credentials']['Open AI GPT']['api_key']:
KeyError: 'Open AI GPT'

@ogkalu2
Copy link
Owner

ogkalu2 commented Jan 12, 2025

@ZuagirC
You need to re-download the repo.

If you have git installed and downloaded the repo with git clone, then you can just run

git pull 

in the directory where the comic-translate folder is located

@ZuagirC
Copy link

ZuagirC commented Jan 12, 2025

Whaaoooo that's Work !!! A Great thank, Congrats Thousand thank !!! Great Job

@ogkalu2 ogkalu2 closed this as completed Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@ogkalu2 @ZuagirC @Dymrim and others