Skip to content

Commit

Permalink
Update keys.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zyddnys authored Oct 29, 2023
1 parent cb89c36 commit 48be146
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions manga_translator/translators/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
load_dotenv()

# baidu
BAIDU_APP_ID = os.getenv('BAIDU_APP_ID', '20200814000543070') #你的appid
BAIDU_SECRET_KEY = os.getenv('BAIDU_SECRET_KEY', 'GZWWEwgVh2a0OL7itzA6') #你的密钥
BAIDU_APP_ID = os.getenv('BAIDU_APP_ID', '') #你的appid
BAIDU_SECRET_KEY = os.getenv('BAIDU_SECRET_KEY', '') #你的密钥
# youdao
YOUDAO_APP_KEY = os.getenv('YOUDAO_APP_KEY', '5077fb725e38c9d3') # 应用ID
YOUDAO_SECRET_KEY = os.getenv('YOUDAO_SECRET_KEY', 'BHyiUU3c3ITyBNNaNzsaxnMnpamuePNo') # 应用秘钥
YOUDAO_APP_KEY = os.getenv('YOUDAO_APP_KEY', '') # 应用ID
YOUDAO_SECRET_KEY = os.getenv('YOUDAO_SECRET_KEY', '') # 应用秘钥
# deepl
DEEPL_AUTH_KEY = os.getenv('DEEPL_AUTH_KEY', 'fe2175e3-d834-930c-229e-fc7e9839ac49') #YOUR_AUTH_KEY
DEEPL_AUTH_KEY = os.getenv('DEEPL_AUTH_KEY', '') #YOUR_AUTH_KEY
# openai
OPENAI_API_KEY = os.getenv('OPENAI_API_KEY', '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')
OPENAI_API_KEY = os.getenv('OPENAI_API_KEY', '')
OPENAI_HTTP_PROXY = os.getenv('OPENAI_HTTP_PROXY') # TODO: Replace with --proxy

OPENAI_API_BASE = os.getenv('OPENAI_API_BASE', 'https://api.openai.com/v1') #使用api-for-open-llm例子 http://127.0.0.1:8000/v1

CAIYUN_TOKEN = os.getenv('CAIYUN_TOKEN', '') # 彩云小译API访问令牌
CAIYUN_TOKEN = os.getenv('CAIYUN_TOKEN', '') # 彩云小译API访问令牌

0 comments on commit 48be146

Please sign in to comment.