Skip to content

Commit c8f1e32

Browse files
committed
Merge branch 'aw_25_11'
2 parents 5c5aa5c + e5c8194 commit c8f1e32

File tree

465 files changed

+3253
-869
lines changed

Some content is hidden

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

465 files changed

+3253
-869
lines changed

english/net/aspose.words.ai/aimodel/_index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ An abstract class representing the integration with various AI models within the
1616
public abstract class AiModel
1717
```
1818

19+
## Properties
20+
21+
| Name | Description |
22+
| --- | --- |
23+
| [Timeout](../../aspose.words.ai/aimodel/timeout/) { get; set; } | 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). |
24+
| abstract [Url](../../aspose.words.ai/aimodel/url/) { getset; } | Gets or sets a URL of the model. The default value is specific for the model. |
25+
1926
## Methods
2027

2128
| Name | Description |

english/net/aspose.words.ai/aimodel/checkgrammar/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: CheckGrammar
55
second_title: Aspose.Words for .NET
66
description: AI-powered grammar checker API for documents. Automatically detect and fix grammar errors in Word files using advanced language models.
77
type: docs
8-
weight: 20
8+
weight: 40
99
url: /net/aspose.words.ai/aimodel/checkgrammar/
1010
---
1111
## AiModel.CheckGrammar method

english/net/aspose.words.ai/aimodel/summarize/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: Summarize
55
second_title: Aspose.Words for .NET
66
description: Smart document summarization API with customizable length options. Generate concise summaries from any document using AI technology.
77
type: docs
8-
weight: 30
8+
weight: 50
99
url: /net/aspose.words.ai/aimodel/summarize/
1010
---
1111
## Summarize(*[Document](../../../aspose.words/document/)[SummarizeOptions](../../summarizeoptions/)*) {#summarize}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: AiModel.Timeout
3+
linktitle: Timeout
4+
articleTitle: Timeout
5+
second_title: Aspose.Words for .NET
6+
description: Sets how long Aspose.Words waits for AI responses, improving performance and reliability.
7+
type: docs
8+
weight: 20
9+
url: /net/aspose.words.ai/aimodel/timeout/
10+
---
11+
## AiModel.Timeout property
12+
13+
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).
14+
15+
```csharp
16+
public int Timeout { get; set; }
17+
```
18+
19+
## Examples
20+
21+
Shows how to change model default timeout.
22+
23+
```csharp
24+
string apiKey = Environment.GetEnvironmentVariable("API_KEY");
25+
AiModel model = AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
26+
// Default value 100000ms.
27+
model.Timeout = 250000;
28+
```
29+
30+
### See Also
31+
32+
* class [AiModel](../)
33+
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
34+
* assembly [Aspose.Words](../../../)

english/net/aspose.words.ai/aimodel/translate/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: Translate
55
second_title: Aspose.Words for .NET
66
description: Professional document translation API supporting multiple languages. Translate Word documents accurately with AI-powered language processing.
77
type: docs
8-
weight: 40
8+
weight: 60
99
url: /net/aspose.words.ai/aimodel/translate/
1010
---
1111
## AiModel.Translate method
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: AiModel.Url
3+
linktitle: Url
4+
articleTitle: Url
5+
second_title: Aspose.Words for .NET
6+
description: Specifies the AI model endpoint URL in Aspose.Words for accurate connection setup.
7+
type: docs
8+
weight: 30
9+
url: /net/aspose.words.ai/aimodel/url/
10+
---
11+
## AiModel.Url property
12+
13+
Gets or sets a URL of the model. The default value is specific for the model.
14+
15+
```csharp
16+
public abstract string Url { get; set; }
17+
```
18+
19+
## Examples
20+
21+
Shows how to change model default url.
22+
23+
```csharp
24+
string apiKey = Environment.GetEnvironmentVariable("API_KEY");
25+
AiModel model = AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
26+
// Default value "https://api.openai.com/".
27+
model.Url = "https://my.a.com/";
28+
```
29+
30+
Shows how to check the grammar of a document.
31+
32+
```csharp
33+
Document doc = new Document(MyDir + "Big document.docx");
34+
35+
string apiKey = Environment.GetEnvironmentVariable("API_KEY");
36+
// Use OpenAI generative language models.
37+
AiModel model = AiModel.Create(AiModelType.Gpt4OMini).WithApiKey(apiKey);
38+
39+
CheckGrammarOptions grammarOptions = new CheckGrammarOptions();
40+
grammarOptions.ImproveStylistics = true;
41+
42+
Document proofedDoc = model.CheckGrammar(doc, grammarOptions);
43+
proofedDoc.Save(ArtifactsDir + "AI.AiGrammar.docx");
44+
```
45+
46+
### See Also
47+
48+
* class [AiModel](../)
49+
* namespace [Aspose.Words.AI](../../../aspose.words.ai/)
50+
* assembly [Aspose.Words](../../../)

english/net/aspose.words.ai/aimodel/withapikey/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: WithApiKey
55
second_title: Aspose.Words for .NET
66
description: Unlock the power of AiModel with the WithApiKey method. Effortlessly set your API key for enhanced functionality and seamless integration.
77
type: docs
8-
weight: 50
8+
weight: 70
99
url: /net/aspose.words.ai/aimodel/withapikey/
1010
---
1111
## AiModel.WithApiKey method

english/net/aspose.words.ai/anthropicaimodel/_index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ An abstract class representing the integration with Anthropic’s AI models with
1616
public abstract class AnthropicAiModel : AiModel, IAiModelText
1717
```
1818

19+
## Properties
20+
21+
| Name | Description |
22+
| --- | --- |
23+
| [Timeout](../../aspose.words.ai/aimodel/timeout/) { get; set; } | 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). |
24+
| override [Url](../../aspose.words.ai/anthropicaimodel/url/) { getset; } | Gets or sets a URL of the model. The default value is "https://api.anthropic.com/". |
25+
1926
## Methods
2027

2128
| Name | Description |

english/net/aspose.words.ai/anthropicaimodel/summarize/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: Summarize
55
second_title: Aspose.Words for .NET
66
description: Anthropic AI document summarizer with adjustable summary length. Create professional document summaries using Claude AI technology.
77
type: docs
8-
weight: 10
8+
weight: 20
99
url: /net/aspose.words.ai/anthropicaimodel/summarize/
1010
---
1111
## Summarize(*[Document](../../../aspose.words/document/)[SummarizeOptions](../../summarizeoptions/)*) {#summarize}

english/net/aspose.words.ai/anthropicaimodel/translate/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: Translate
55
second_title: Aspose.Words for .NET
66
description: Anthropic AI translation service for documents. Translate files into any language using Claude's advanced natural language processing.
77
type: docs
8-
weight: 20
8+
weight: 30
99
url: /net/aspose.words.ai/anthropicaimodel/translate/
1010
---
1111
## AnthropicAiModel.Translate method

0 commit comments

Comments
 (0)