Skip to content

Commit 668aae3

Browse files
Merge pull request #149 from aspose-words/aw_for_node_js_release_25.7.0
Aspose.Words for Node.js 25.7.0 api refs updated
2 parents 31b7776 + 4e8abfa commit 668aae3

File tree

116 files changed

+1375
-1568
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+1375
-1568
lines changed

english/nodejs-net/Aspose.Words.AI/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ This functionality extends the power of document automation, facilitating effici
2929
| [GoogleAiModel](./googleaimodel/) | An abstract class representing the integration with Google’s AI models within the Aspose.Words. |
3030
| [OpenAiModel](./openaimodel/) | An abstract class representing the integration with OpenAI's large language models within the Aspose.Words. |
3131
| [SummarizeOptions](./summarizeoptions/) | Allows to specify various options for summarizing document content. |
32-
| [IAiModelText](./iaimodeltext/) | The common interface for AI models designed to generate a variety of text-based content. |
3332

3433
## Enumerations
3534

english/nodejs-net/Aspose.Words.AI/aimodel/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Represents information about a Generative Language Model.
2121
|[ asAnthropicAiModel()](./asAnthropicAiModel/#default) | Cast AiModel to [AnthropicAiModel](../anthropicaimodel/). |
2222
|[ asGoogleAiModel()](./asGoogleAiModel/#default) | Cast AiModel to [GoogleAiModel](../googleaimodel/). |
2323
|[ asOpenAiModel()](./asOpenAiModel/#default) | Cast AiModel to [OpenAiModel](../openaimodel/). |
24+
|[ checkGrammar(sourceDocument, options)](./checkGrammar/#document_checkgrammaroptions) | Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document. |
2425
|[ create(modelType)](./create/#aimodeltype) | Creates a new instance of [AiModel](./) class. |
2526
|[ createClaude35Haiku()](./createClaude35Haiku/#default) | Creates a new instance of Claude 3.5 Haiku generative model type. |
2627
|[ createClaude35Sonnet()](./createClaude35Sonnet/#default) | Creates a new instance of Claude 3.5 Sonnet generative model type. |
@@ -35,6 +36,9 @@ Represents information about a Generative Language Model.
3536
|[ createGpt4OMini()](./createGpt4OMini/#default) | Creates a new instance of GPT-4 mini generative model type. |
3637
|[ createGpt4Turbo()](./createGpt4Turbo/#default) | Creates a new instance of GPT-4 Turbo generative model type. |
3738
|[ setApiKey(apiKey)](./setApiKey/#string) | Sets a specified API key to the model. |
39+
|[ summarize(sourceDocument, options)](./summarize/#document_summarizeoptions) | Generates a summary of the specified document, with options to adjust the length of the summary. This operation leverages the connected AI model for content processing. |
40+
|[ summarize(sourceDocuments, options)](./summarize/#document[]_summarizeoptions) | Generates summaries for an array of documents, with options to control the summary length and other settings. This method utilizes the connected AI model for processing each document in the array. |
41+
|[ translate(sourceDocument, targetLanguage)](./translate/#document_language) | Translates the provided document into the specified target language. This operation leverages the connected AI model for content translating. |
3842

3943
### Examples
4044

english/nodejs-net/Aspose.Words.AI/iaimodeltext/checkGrammar/_index.md renamed to english/nodejs-net/Aspose.Words.AI/aimodel/checkGrammar/_index.md

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: IAiModelText.checkGrammar method
2+
title: AiModel.checkGrammar method
33
linktitle: checkGrammar method
44
articleTitle: checkGrammar method
55
second_title: Aspose.Words for Node.js
6-
description: "IAiModelText.checkGrammar method. Checks grammar of the provided document"
6+
description: "AiModel.checkGrammar method. Checks grammar of the provided document"
77
type: docs
8-
weight: 10
9-
url: /nodejs-net/aspose.words.ai/iaimodeltext/checkGrammar/
8+
weight: 40
9+
url: /nodejs-net/aspose.words.ai/aimodel/checkGrammar/
1010
---
1111

1212
## checkGrammar(sourceDocument, options) {#document_checkgrammaroptions}
@@ -29,32 +29,8 @@ checkGrammar(sourceDocument: Aspose.Words.Document, options: Aspose.Words.AI.Che
2929
A new [Document](../../../aspose.words/document/) with checked grammar.
3030

3131

32-
### Examples
33-
34-
Shows how to check the grammar of a document.
35-
36-
```js
37-
let doc = new aw.Document(base.myDir + "Big document.docx");
38-
39-
const apiKey = process.env.API_KEY;
40-
if (!apiKey) {
41-
console.warn("API_KEY environment variable is not set.");
42-
return;
43-
}
44-
45-
// Use OpenAI generative language models.
46-
let model = aw.AI.AiModel.createGpt4OMini();
47-
model.setApiKey(apiKey);
48-
49-
let grammarOptions = new aw.AI.CheckGrammarOptions();
50-
grammarOptions.improveStylistics = true;
51-
52-
let proofedDoc = model.checkGrammar(doc, grammarOptions);
53-
proofedDoc.save(base.artifactsDir + "AI.AiGrammar.docx");
54-
```
55-
5632
### See Also
5733

5834
* module [Aspose.Words.AI](../../)
59-
* class [IAiModelText](../)
35+
* class [AiModel](../)
6036

english/nodejs-net/Aspose.Words.AI/aimodel/create/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: create method
55
second_title: Aspose.Words for Node.js
66
description: "AiModel.create method. Creates a new instance of [AiModel](../) class."
77
type: docs
8-
weight: 40
8+
weight: 50
99
url: /nodejs-net/aspose.words.ai/aimodel/create/
1010
---
1111

english/nodejs-net/Aspose.Words.AI/aimodel/createClaude35Haiku/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: createClaude35Haiku method
55
second_title: Aspose.Words for Node.js
66
description: "AiModel.createClaude35Haiku method. Creates a new instance of Claude 3.5 Haiku generative model type."
77
type: docs
8-
weight: 50
8+
weight: 60
99
url: /nodejs-net/aspose.words.ai/aimodel/createClaude35Haiku/
1010
---
1111

english/nodejs-net/Aspose.Words.AI/aimodel/createClaude35Sonnet/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: createClaude35Sonnet method
55
second_title: Aspose.Words for Node.js
66
description: "AiModel.createClaude35Sonnet method. Creates a new instance of Claude 3.5 Sonnet generative model type."
77
type: docs
8-
weight: 60
8+
weight: 70
99
url: /nodejs-net/aspose.words.ai/aimodel/createClaude35Sonnet/
1010
---
1111

english/nodejs-net/Aspose.Words.AI/aimodel/createClaude3Haiku/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: createClaude3Haiku method
55
second_title: Aspose.Words for Node.js
66
description: "AiModel.createClaude3Haiku method. Creates a new instance of Claude 3 Haiku generative model type."
77
type: docs
8-
weight: 70
8+
weight: 80
99
url: /nodejs-net/aspose.words.ai/aimodel/createClaude3Haiku/
1010
---
1111

english/nodejs-net/Aspose.Words.AI/aimodel/createClaude3Opus/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: createClaude3Opus method
55
second_title: Aspose.Words for Node.js
66
description: "AiModel.createClaude3Opus method. Creates a new instance of Claude 3 Opus generative model type."
77
type: docs
8-
weight: 80
8+
weight: 90
99
url: /nodejs-net/aspose.words.ai/aimodel/createClaude3Opus/
1010
---
1111

english/nodejs-net/Aspose.Words.AI/aimodel/createClaude3Sonnet/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: createClaude3Sonnet method
55
second_title: Aspose.Words for Node.js
66
description: "AiModel.createClaude3Sonnet method. Creates a new instance of Claude 3 Sonnet generative model type."
77
type: docs
8-
weight: 90
8+
weight: 100
99
url: /nodejs-net/aspose.words.ai/aimodel/createClaude3Sonnet/
1010
---
1111

english/nodejs-net/Aspose.Words.AI/aimodel/createGemini15Flash/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: createGemini15Flash method
55
second_title: Aspose.Words for Node.js
66
description: "AiModel.createGemini15Flash method. Creates a new instance of Gemini 1.5 Flash generative model type."
77
type: docs
8-
weight: 100
8+
weight: 110
99
url: /nodejs-net/aspose.words.ai/aimodel/createGemini15Flash/
1010
---
1111

0 commit comments

Comments
 (0)