Skip to content

Commit 2e43df8

Browse files
committed
Renamed Alibaba to Qwen
1 parent a6b122e commit 2e43df8

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Interface `MTEngine` provides these methods:
2222
fixTags(source: XMLElement, target: XMLElement): Promise<XMLElement>;
2323
```
2424

25-
All supported engines implement the `MTEngine` interface. Methods `fixMatch()` and `fixTags()` are only implemented by AI-based engines (`AlibabaTranslator`, `ChatGPTTranslator`, `AnthropicTranslator` and `MistralTranslator`), all other engines throw an error when they are called.
25+
All supported engines implement the `MTEngine` interface. Methods `fixMatch()` and `fixTags()` are only implemented by AI-based engines (`QwenTranslator`, `ChatGPTTranslator`, `AnthropicTranslator` and `MistralTranslator`), all other engines throw an error when they are called.
2626

2727
## Supported Engines
2828

@@ -65,7 +65,7 @@ class TestGoogle {
6565
new TestGoogle();
6666
```
6767

68-
`AlibabaTranslator`, `ChatGPTTranslator`, `AnthropicTranslator` and `MistralTranslator` need that you either indicate the model to use when creating the instance, or set the model to use by calling the `setModel()` method like in the following example:
68+
`QwenTranslator`, `ChatGPTTranslator`, `AnthropicTranslator` and `MistralTranslator` need that you either indicate the model to use when creating the instance, or set the model to use by calling the `setModel()` method like in the following example:
6969

7070
```typescript
7171
import { ChatGPTTranslator } from "mtengines";
@@ -87,7 +87,7 @@ class TestChatGPT {
8787
new TestChatGPT();
8888
```
8989

90-
You can get a list of models supported by `AlibabaTranslator`, `ChatGPTTranslator`, `AnthropicTranslator` and `MistralTranslator` by calling the `getAvailableModels()` method:
90+
You can get a list of models supported by `QwenTranslator`, `ChatGPTTranslator`, `AnthropicTranslator` and `MistralTranslator` by calling the `getAvailableModels()` method:
9191

9292
```typescript
9393
import { AnthropicTranslator } from "mtengines";
@@ -124,4 +124,4 @@ Claude available models:
124124
]
125125
```
126126

127-
*Note*: Only `AlibabaTranslator` has a set of preconfigured models that depend on the selected working `region`, for all other engines the list of available models is retrieved at runtime.
127+
*Note*: Only `QwenTranslator` has a set of preconfigured models that depend on the selected working `region`, for all other engines the list of available models is retrieved at runtime.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mtengines",
33
"productName": "MTEngines",
4-
"version": "4.4.0",
4+
"version": "4.5.0",
55
"description": "Machine Translation (MT) library written in TypeScript",
66
"type": "module",
77
"keywords": [
@@ -15,7 +15,7 @@
1515
"Neural Machine Translation",
1616
"ModernMT",
1717
"Mistral",
18-
"Alibaba"
18+
"Qwen"
1919
],
2020
"scripts": {
2121
"build": "tsc"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { MTEngine } from "./MTEngine.js";
1616
import { MTMatch } from "./MTMatch.js";
1717
import { MTUtils } from "./MTUtils.js";
1818

19-
export class AlibabaTranslator implements MTEngine {
19+
export class QwenTranslator implements MTEngine {
2020

2121
openai: OpenAI;
2222
srcLang: string = '';
@@ -65,15 +65,15 @@ export class AlibabaTranslator implements MTEngine {
6565
}
6666

6767
getName(): string {
68-
return 'Alibaba Translator';
68+
return 'Qwen Translator';
6969
}
7070

7171
setModel(model: string): void {
7272
this.model = model;
7373
}
7474

7575
getShortName(): string {
76-
return 'Alibaba';
76+
return 'Qwen';
7777
}
7878

7979
getSourceLanguages(): Promise<string[]> {

ts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Maxprograms - initial API and implementation
1111
*******************************************************************************/
1212

13-
export { AlibabaTranslator } from './AlibabaTranslator.js';
13+
export { QwenTranslator } from './QwenTranslator.js';
1414
export { AnthropicTranslator } from './AnthropicTranslator.js';
1515
export { AzureTranslator } from './AzureTranslator.js';
1616
export { ChatGPTTranslator } from './ChatGPTTranslator.js';

0 commit comments

Comments
 (0)