Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions english/nodejs-net/Aspose.Words.AI/aimodel/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ url: /nodejs-net/aspose.words.ai/aimodel/
Represents information about a Generative Language Model.


### Properties

| Name | Description |
| --- | --- |
| [timeout](./timeout/) | Gets or sets the number of milliseconds to wait before the request to AI model times out. The default value is 100,000 milliseconds (100 seconds). |
| [url](./url/) | Gets or sets a URL of the model. The default value is specific for the model. |

### Methods

| Name | Description |
| --- | --- |
|[ asAnthropicAiModel()](./asAnthropicAiModel/#default) | Cast AiModel to [AnthropicAiModel](../anthropicaimodel/). |
|[ asGoogleAiModel()](./asGoogleAiModel/#default) | Cast AiModel to [GoogleAiModel](../googleaimodel/). |
|[ asOpenAiModel()](./asOpenAiModel/#default) | Cast AiModel to [OpenAiModel](../openaimodel/). |
|[ asAnthropicAiModel()](./asAnthropicAiModel/#default) | |
|[ checkGrammar(sourceDocument, options)](./checkGrammar/#document_checkgrammaroptions) | Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document. |
|[ create(modelType)](./create/#aimodeltype) | Creates a new instance of [AiModel](./) class. |
|[ createClaude35Haiku()](./createClaude35Haiku/#default) | Creates a new instance of Claude 3.5 Haiku generative model type. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@ title: AiModel.asAnthropicAiModel method
linktitle: asAnthropicAiModel method
articleTitle: asAnthropicAiModel method
second_title: Aspose.Words for Node.js
description: "AiModel.asAnthropicAiModel method. Cast AiModel to [AnthropicAiModel](../../anthropicaimodel/)."
description: "AiModel.asAnthropicAiModel method. "
type: docs
weight: 10
weight: 30
url: /nodejs-net/aspose.words.ai/aimodel/asAnthropicAiModel/
---

## asAnthropicAiModel() {#default}

Cast AiModel to [AnthropicAiModel](../../anthropicaimodel/).



```js
asAnthropicAiModel()
```
Expand Down

This file was deleted.

26 changes: 0 additions & 26 deletions english/nodejs-net/Aspose.Words.AI/aimodel/asOpenAiModel/_index.md

This file was deleted.

26 changes: 26 additions & 0 deletions english/nodejs-net/Aspose.Words.AI/aimodel/timeout/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: AiModel.timeout property
linktitle: timeout property
articleTitle: timeout property
second_title: Aspose.Words for Node.js
description: "AiModel.timeout property. Gets or sets the number of milliseconds to wait before the request to AI model times out"
type: docs
weight: 10
url: /nodejs-net/aspose.words.ai/aimodel/timeout/
---

## AiModel.timeout property

Gets or sets the number of milliseconds to wait before the request to AI model times out.
The default value is 100,000 milliseconds (100 seconds).


```js
get timeout(): number
```

### See Also

* module [Aspose.Words.AI](../../)
* class [AiModel](../)

26 changes: 26 additions & 0 deletions english/nodejs-net/Aspose.Words.AI/aimodel/url/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: AiModel.url property
linktitle: url property
articleTitle: url property
second_title: Aspose.Words for Node.js
description: "AiModel.url property. Gets or sets a URL of the model"
type: docs
weight: 20
url: /nodejs-net/aspose.words.ai/aimodel/url/
---

## AiModel.url property

Gets or sets a URL of the model.
The default value is specific for the model.


```js
get url(): string
```

### See Also

* module [Aspose.Words.AI](../../)
* class [AiModel](../)

11 changes: 8 additions & 3 deletions english/nodejs-net/Aspose.Words.AI/anthropicaimodel/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@ An abstract class representing the integration with Anthropic’s AI models with

**Inheritance:** [AnthropicAiModel](./) → [AiModel](../aimodel/)

### Properties

| Name | Description |
| --- | --- |
| [timeout](../aimodel/timeout/) | Gets or sets the number of milliseconds to wait before the request to AI model times out. The default value is 100,000 milliseconds (100 seconds).<br>(Inherited from [AiModel](../aimodel/)) |
| [url](./url/) | Gets or sets a URL of the model. The default value is "https://api.anthropic.com/". |

### Methods

| Name | Description |
| --- | --- |
|[ asAnthropicAiModel()](../aimodel/asAnthropicAiModel/#default) | Cast AiModel to [AnthropicAiModel](./).<br>(Inherited from [AiModel](../aimodel/)) |
|[ asGoogleAiModel()](../aimodel/asGoogleAiModel/#default) | Cast AiModel to [GoogleAiModel](../googleaimodel/).<br>(Inherited from [AiModel](../aimodel/)) |
|[ asOpenAiModel()](../aimodel/asOpenAiModel/#default) | Cast AiModel to [OpenAiModel](../openaimodel/).<br>(Inherited from [AiModel](../aimodel/)) |
|[ asAnthropicAiModel()](../aimodel/asAnthropicAiModel/#default) | <br>(Inherited from [AiModel](../aimodel/)) |
|[ checkGrammar(sourceDocument, options)](../aimodel/checkGrammar/#document_checkgrammaroptions) | Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document.<br>(Inherited from [AiModel](../aimodel/)) |
|[ create(modelType)](../aimodel/create/#aimodeltype) | Creates a new instance of [AiModel](../aimodel/) class.<br>(Inherited from [AiModel](../aimodel/)) |
|[ createClaude35Haiku()](../aimodel/createClaude35Haiku/#default) | Creates a new instance of Claude 3.5 Haiku generative model type.<br>(Inherited from [AiModel](../aimodel/)) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: summarize method
second_title: Aspose.Words for Node.js
description: "Aspose.Words.AI.AnthropicAiModel.summarize method"
type: docs
weight: 10
weight: 20
url: /nodejs-net/aspose.words.ai/anthropicaimodel/summarize/
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: translate method
second_title: Aspose.Words for Node.js
description: "AnthropicAiModel.translate method. Translates the provided document into the specified target language"
type: docs
weight: 20
weight: 30
url: /nodejs-net/aspose.words.ai/anthropicaimodel/translate/
---

Expand Down
26 changes: 26 additions & 0 deletions english/nodejs-net/Aspose.Words.AI/anthropicaimodel/url/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: AnthropicAiModel.url property
linktitle: url property
articleTitle: url property
second_title: Aspose.Words for Node.js
description: "AnthropicAiModel.url property. Gets or sets a URL of the model"
type: docs
weight: 10
url: /nodejs-net/aspose.words.ai/anthropicaimodel/url/
---

## AnthropicAiModel.url property

Gets or sets a URL of the model.
The default value is "https://api.anthropic.com/".


```js
get url(): string
```

### See Also

* module [Aspose.Words.AI](../../)
* class [AnthropicAiModel](../)

11 changes: 8 additions & 3 deletions english/nodejs-net/Aspose.Words.AI/googleaimodel/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@ An abstract class representing the integration with Google’s AI models within

**Inheritance:** [GoogleAiModel](./) → [AiModel](../aimodel/)

### Properties

| Name | Description |
| --- | --- |
| [timeout](../aimodel/timeout/) | Gets or sets the number of milliseconds to wait before the request to AI model times out. The default value is 100,000 milliseconds (100 seconds).<br>(Inherited from [AiModel](../aimodel/)) |
| [url](./url/) | Gets or sets a URL of the model. The default value is "https://generativelanguage.googleapis.com/v1beta/models/". |

### Methods

| Name | Description |
| --- | --- |
|[ asAnthropicAiModel()](../aimodel/asAnthropicAiModel/#default) | Cast AiModel to [AnthropicAiModel](../anthropicaimodel/).<br>(Inherited from [AiModel](../aimodel/)) |
|[ asGoogleAiModel()](../aimodel/asGoogleAiModel/#default) | Cast AiModel to [GoogleAiModel](./).<br>(Inherited from [AiModel](../aimodel/)) |
|[ asOpenAiModel()](../aimodel/asOpenAiModel/#default) | Cast AiModel to [OpenAiModel](../openaimodel/).<br>(Inherited from [AiModel](../aimodel/)) |
|[ asAnthropicAiModel()](../aimodel/asAnthropicAiModel/#default) | <br>(Inherited from [AiModel](../aimodel/)) |
|[ checkGrammar(sourceDocument, options)](../aimodel/checkGrammar/#document_checkgrammaroptions) | Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document.<br>(Inherited from [AiModel](../aimodel/)) |
|[ create(modelType)](../aimodel/create/#aimodeltype) | Creates a new instance of [AiModel](../aimodel/) class.<br>(Inherited from [AiModel](../aimodel/)) |
|[ createClaude35Haiku()](../aimodel/createClaude35Haiku/#default) | Creates a new instance of Claude 3.5 Haiku generative model type.<br>(Inherited from [AiModel](../aimodel/)) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: summarize method
second_title: Aspose.Words for Node.js
description: "Aspose.Words.AI.GoogleAiModel.summarize method"
type: docs
weight: 10
weight: 20
url: /nodejs-net/aspose.words.ai/googleaimodel/summarize/
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: translate method
second_title: Aspose.Words for Node.js
description: "GoogleAiModel.translate method. Translates a specified document."
type: docs
weight: 20
weight: 30
url: /nodejs-net/aspose.words.ai/googleaimodel/translate/
---

Expand Down
26 changes: 26 additions & 0 deletions english/nodejs-net/Aspose.Words.AI/googleaimodel/url/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: GoogleAiModel.url property
linktitle: url property
articleTitle: url property
second_title: Aspose.Words for Node.js
description: "GoogleAiModel.url property. Gets or sets a URL of the model"
type: docs
weight: 10
url: /nodejs-net/aspose.words.ai/googleaimodel/url/
---

## GoogleAiModel.url property

Gets or sets a URL of the model.
The default value is "https://generativelanguage.googleapis.com/v1beta/models/".


```js
get url(): string
```

### See Also

* module [Aspose.Words.AI](../../)
* class [GoogleAiModel](../)

11 changes: 8 additions & 3 deletions english/nodejs-net/Aspose.Words.AI/openaimodel/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@ An abstract class representing the integration with OpenAI's large language mode

**Inheritance:** [OpenAiModel](./) → [AiModel](../aimodel/)

### Properties

| Name | Description |
| --- | --- |
| [timeout](../aimodel/timeout/) | Gets or sets the number of milliseconds to wait before the request to AI model times out. The default value is 100,000 milliseconds (100 seconds).<br>(Inherited from [AiModel](../aimodel/)) |
| [url](./url/) | Gets or sets a URL of the model. The default value is "https://api.openai.com/". |

### Methods

| Name | Description |
| --- | --- |
|[ asAnthropicAiModel()](../aimodel/asAnthropicAiModel/#default) | Cast AiModel to [AnthropicAiModel](../anthropicaimodel/).<br>(Inherited from [AiModel](../aimodel/)) |
|[ asGoogleAiModel()](../aimodel/asGoogleAiModel/#default) | Cast AiModel to [GoogleAiModel](../googleaimodel/).<br>(Inherited from [AiModel](../aimodel/)) |
|[ asOpenAiModel()](../aimodel/asOpenAiModel/#default) | Cast AiModel to [OpenAiModel](./).<br>(Inherited from [AiModel](../aimodel/)) |
|[ asAnthropicAiModel()](../aimodel/asAnthropicAiModel/#default) | <br>(Inherited from [AiModel](../aimodel/)) |
|[ checkGrammar(sourceDocument, options)](../aimodel/checkGrammar/#document_checkgrammaroptions) | Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document.<br>(Inherited from [AiModel](../aimodel/)) |
|[ create(modelType)](../aimodel/create/#aimodeltype) | Creates a new instance of [AiModel](../aimodel/) class.<br>(Inherited from [AiModel](../aimodel/)) |
|[ createClaude35Haiku()](../aimodel/createClaude35Haiku/#default) | Creates a new instance of Claude 3.5 Haiku generative model type.<br>(Inherited from [AiModel](../aimodel/)) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: setOrganization method
second_title: Aspose.Words for Node.js
description: "OpenAiModel.setOrganization method. Sets a specified Organization to the model."
type: docs
weight: 10
weight: 20
url: /nodejs-net/aspose.words.ai/openaimodel/setOrganization/
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: setProject method
second_title: Aspose.Words for Node.js
description: "OpenAiModel.setProject method. Sets a specified Project to the model."
type: docs
weight: 20
weight: 30
url: /nodejs-net/aspose.words.ai/openaimodel/setProject/
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: summarize method
second_title: Aspose.Words for Node.js
description: "Aspose.Words.AI.OpenAiModel.summarize method"
type: docs
weight: 30
weight: 40
url: /nodejs-net/aspose.words.ai/openaimodel/summarize/
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articleTitle: translate method
second_title: Aspose.Words for Node.js
description: "OpenAiModel.translate method. Translates the provided document into the specified target language"
type: docs
weight: 40
weight: 50
url: /nodejs-net/aspose.words.ai/openaimodel/translate/
---

Expand Down
26 changes: 26 additions & 0 deletions english/nodejs-net/Aspose.Words.AI/openaimodel/url/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: OpenAiModel.url property
linktitle: url property
articleTitle: url property
second_title: Aspose.Words for Node.js
description: "OpenAiModel.url property. Gets or sets a URL of the model"
type: docs
weight: 10
url: /nodejs-net/aspose.words.ai/openaimodel/url/
---

## OpenAiModel.url property

Gets or sets a URL of the model.
The default value is "https://api.openai.com/".


```js
get url(): string
```

### See Also

* module [Aspose.Words.AI](../../)
* class [OpenAiModel](../)

4 changes: 2 additions & 2 deletions english/nodejs-net/Aspose.Words.Drawing/imagedata/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ Adapts [ImageData](./) class public API for Node.js porting.
Use the [Shape.imageData](../shape/imageData/) property to access and modify the image inside a shape.
You do not create instances of the [ImageData](./) class directly.

An image can be stored inside a shape, linked to external file or both (linked and stored in the document).
An image can be stored inside a shape, linked to external file or both(linked and stored in the document).

Regardless of whether the image is stored inside the shape or linked, you can always access the actual
image using the [ImageData.toByteArray()](./toByteArray/#default), or[ImageData.save()](./save/#string) methods.
If the image is stored inside the shape, you can also directly access it using the [ImageData.imageBytes](./imageBytes/) property.

To store an image inside a shape use the [ImageData.setImage()](./setImage/#string) method. To link an image to a shape, set the [ImageData.sourceFullName](./sourceFullName/) property.
To store an image inside a shape use the[ImageData.setImage()](./setImage/#string) method.To link an image to a shape, set the[ImageData.sourceFullName](./sourceFullName/) property.



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ get imageBytes(): number[]

Setting the value to ``null`` or an empty array will remove the image from the shape.

Returns ``null`` if the image is not stored in the document (e.g the image is probably linked in this case).
Returns``null`` if the image is not stored in the document (e.g the image is probably linked in this case).



Expand Down
Loading