Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Merge branch 'main' into online
Browse files Browse the repository at this point in the history
  • Loading branch information
SIPC committed Feb 15, 2024
2 parents 84efba2 + 4caa254 commit 471dd12
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ Gemini_API_ENDPOINT='https://generativelanguage.googleapis.com'

NIUTRANS_KEY='...'
DEEPL_X_API_URL='...'

SOUGOU_Cookie=''
4 changes: 0 additions & 4 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ if docker ps -a -q --filter "name=lyrify" | grep -q .; then
read -p "Gemini API Key: " gemini_api_key
read -p "NIUTRANS Key: " niutrans_key
read -p "DEEPL_X API URL: " deepl_x_api_url
read -p "sougou_cookie: " sougou_cookie

cat <<EOL >/tmp/.Lyrify/config.txt
openai_api_endpoint=${openai_api_endpoint:-https://api.openai.com/v1/chat/completions}
Expand All @@ -88,7 +87,6 @@ gemini_api_endpoint=${gemini_api_endpoint:-https://generativelanguage.googleapis
gemini_api_key=$gemini_api_key
niutrans_key=$niutrans_key
deepl_x_api_url=$deepl_x_api_url
sougou_cookie=$sougou_cookie
EOL
fi

Expand Down Expand Up @@ -139,7 +137,6 @@ else
read -p "Gemini API Key: " gemini_api_key
read -p "NIUTRANS Key: " niutrans_key
read -p "DEEPL_X API URL: " deepl_x_api_url
read -p "sougou_cookie: " sougou_cookie

cat <<EOL >config.txt
openai_api_endpoint=${openai_api_endpoint:-https://api.openai.com/v1/chat/completions}
Expand All @@ -149,7 +146,6 @@ gemini_api_endpoint=${gemini_api_endpoint:-https://generativelanguage.googleapis
gemini_api_key=$gemini_api_key
niutrans_key=$niutrans_key
deepl_x_api_url=$deepl_x_api_url
sougou_cookie=$sougou_cookie
EOL

docker run -d --name lyrify \
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/lib/sougou.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// code from sipc

const puppeterr = require('puppeteer')
import puppeterr from "puppeteer";
import { getErrorMessage } from "@/pages/api/lib/utils";

export class Sougou {
Expand Down

0 comments on commit 471dd12

Please sign in to comment.