@lynxflow/seo-engine 1.8.15 → 1.8.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/rate-limited-translator.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -8529,7 +8529,7 @@ class LynxRateLimitedTranslator2 {
|
|
|
8529
8529
|
});
|
|
8530
8530
|
return results;
|
|
8531
8531
|
}
|
|
8532
|
-
static async callRunPodVllmServerless(contents, target, source, endpointId, apiKey, vllmModel = "Qwen/
|
|
8532
|
+
static async callRunPodVllmServerless(contents, target, source, endpointId, apiKey, vllmModel = "Qwen/Qwen3.8-Flash-Next") {
|
|
8533
8533
|
const url = `https://api.runpod.ai/v2/${endpointId}/openai/v1/chat/completions`;
|
|
8534
8534
|
try {
|
|
8535
8535
|
const prompt = `You are a professional multilingual SEO transcreator. Translate the following JSON array of sentences from ${source} to ${target}. Preserve all technical terms, brand names, and placeholders. Return ONLY the valid JSON array of translated strings with no explanations: ${JSON.stringify(contents)}`;
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ export interface GoogleTranslateConfig {
|
|
|
20
20
|
runpodApiKey?: string;
|
|
21
21
|
huggingFaceEndpoint?: string;
|
|
22
22
|
huggingFaceApiKey?: string;
|
|
23
|
-
vllmModel?: string; // Default: "Qwen/
|
|
23
|
+
vllmModel?: string; // Default: "Qwen/Qwen3.8-Flash-Next" | "Qwen/Qwen3.8-27B-Instruct" | "Qwen/Qwen2.5-7B-Instruct"
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export interface BatchTranslationResult {
|
|
@@ -102,7 +102,7 @@ export class LynxRateLimitedTranslator {
|
|
|
102
102
|
source: string,
|
|
103
103
|
endpointId: string,
|
|
104
104
|
apiKey: string,
|
|
105
|
-
vllmModel = "Qwen/
|
|
105
|
+
vllmModel = "Qwen/Qwen3.8-Flash-Next"
|
|
106
106
|
): Promise<string[]> {
|
|
107
107
|
const url = `https://api.runpod.ai/v2/${endpointId}/openai/v1/chat/completions`;
|
|
108
108
|
|