Mika Scraper / GalaxyAI
Class: GalaxyAI
Defined in: src/_other-scraper/galaxyai.ts:72
The GalaxyAI
SDK provides tools for text generation and manipulation via the translapp.info
API.
Remarks
The SDK supports various operations including summarization, paraphrasing, text expansion, tone editing, grammar correction, translation, and reply generation.
Constructors
Constructor
new GalaxyAI():
GalaxyAI
Returns
An instance of GalaxyAI
.
Properties
modules
readonly
static
modules:GalaxyModule
[]
Defined in: src/_other-scraper/galaxyai.ts:73
Lists the available modules that can be used with the GalaxyAI
SDK.
tones
readonly
static
tones:ToneType
[]
Defined in: src/_other-scraper/galaxyai.ts:82
Provides a list of predefined tone types for text manipulation.
replies
readonly
static
replies:ReplyLength
[]
Defined in: src/_other-scraper/galaxyai.ts:92
Enumerates the possible reply lengths that can be generated.
Methods
request()
static
request(text
,module
,to
,customTone
):Promise
<GalaxyResult
>
Makes a request to the GalaxyAI API for processing text.
Parameters
text
string
The input text that needs transformation.
module
Specifies the operation to be performed using one of the supported GalaxyModule
types.
to
string
= ''
An optional parameter that could represent a tone type or target language.
customTone
string
= ''
An optional parameter allowing the specification of a custom tone name when the tone is set to βOtherβ.
Returns
Promise
<GalaxyResult
>
A promise that resolves to a structured result object containing the outcome of the request.
Example
const result = await GalaxyAI.request("I need this translated.", "TRANSLATE", "French");
if (result.success) {
console.log(result.result.output);
}