feat: Support batch fetch, and update AI prompt

This commit is contained in:
Gabe
2025-09-03 00:37:35 +08:00
parent 2bfb27f346
commit d4e58fc925
14 changed files with 576 additions and 244 deletions

View File

@@ -1,11 +1,11 @@
import queryString from "query-string";
import { DEFAULT_USER_AGENT } from "../config";
export const genBaidu = async ({ text, from, to }) => {
export const genBaidu = async ({ texts, from, to }) => {
const data = {
from,
to,
query: text,
query: texts.join(" "),
source: "txt",
};