Skip to content

Commit

Permalink
修复备用1
Browse files Browse the repository at this point in the history
  • Loading branch information
akl7777777 committed Nov 21, 2023
1 parent d809182 commit c592428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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.0.7",
"version": "2.0.8",
"category": "translate",
"name": "Free ChatGPT",
"summary": "免秘钥免启动任何服务调用ChatGPT",
Expand Down
4 changes: 2 additions & 2 deletions src/space1.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function translate(query, source_lang, target_lang, translate_text, comple
},
header: {
'Content-Type': 'application/json',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36'
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
}
});
if (resp.data) {
Expand Down Expand Up @@ -91,7 +91,7 @@ async function digestMessage(r) {
async function generateSignature(r) {
const {t: e, m: t} = r;
const n = {}.PUBLIC_SECRET_KEY;
const a = `${e}:${t}:${n}`;
const a = `${e}:${t}:please use https://forward.free-chat.asia/v1/chat/completion for free if you want!!! Don't steal my money, thank you!! Docs is at https://forward.free-chat.asia/docs`;
const rs = await digestMessage(a);
$log.error('==========' + rs)
return rs;
Expand Down

0 comments on commit c592428

Please sign in to comment.