opencode-translate 0.3.5 → 0.3.6
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/package.json +1 -1
- package/src/activation/parts.ts +2 -9
package/package.json
CHANGED
package/src/activation/parts.ts
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseTranslatorModel,
|
|
3
|
-
type ResolvedTranslateOptions,
|
|
4
|
-
SPEC_VERSION,
|
|
5
|
-
type TextPartLike,
|
|
6
|
-
type TranslateState,
|
|
7
|
-
} from "../constants"
|
|
1
|
+
import { type ResolvedTranslateOptions, SPEC_VERSION, type TextPartLike, type TranslateState } from "../constants"
|
|
8
2
|
import { createSyntheticPartID } from "../translator"
|
|
9
3
|
|
|
10
4
|
export function createActivationBannerText(options: ResolvedTranslateOptions): string {
|
|
11
|
-
|
|
12
|
-
return `✓ Translation mode enabled · model: ${modelID} · language: ${options.lang}`
|
|
5
|
+
return `✓ Translation mode enabled · model: ${options.model} · language: ${options.lang}`
|
|
13
6
|
}
|
|
14
7
|
|
|
15
8
|
export function createLlmOnlyTextPart(
|