Skip to content

Commit

Permalink
fix: 修复免费线路不可用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
akl7777777 committed Mar 12, 2024
1 parent 0a954e0 commit f66a4bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/customKeyStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ async function translate(query, source_lang, target_lang, translate_text, comple
let headers = {
"Content-Type": "application/json"
}
if (!api_key) {
api_key = 'sk-Ugg2uAELjNBC6lWk865064B9693b45Fb90D7D71d4647C17c';
}
if (api_key) {
headers["Authorization"] = `Bearer ${api_key}`;
headers["Token"] = `${api_key}`;
Expand Down
2 changes: 1 addition & 1 deletion src/info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"identifier": "com.akl.bob-plugin-akl-chatgpt-free-translate",
"version": "2.2.1",
"version": "2.2.2",
"category": "translate",
"name": "Free ChatGPT",
"summary": "免秘钥免启动任何服务调用ChatGPT",
Expand Down

0 comments on commit f66a4bd

Please sign in to comment.