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
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public partial interface ITranslateDocumentsClient
/// </param>
/// <param name="translationMemoryId">
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </param>
/// <param name="translationMemoryThreshold">
Expand Down Expand Up @@ -169,7 +168,6 @@ public partial interface ITranslateDocumentsClient
/// </param>
/// <param name="translationMemoryId">
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </param>
/// <param name="translationMemoryThreshold">
Expand Down Expand Up @@ -250,7 +248,6 @@ public partial interface ITranslateDocumentsClient
/// </param>
/// <param name="translationMemoryId">
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </param>
/// <param name="translationMemoryThreshold">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,11 @@ public partial interface ITranslateTextClient
/// <param name="styleId">
/// Specify the [style rule list](/api-reference/style-rules) to use for the translation.<br/>
/// **Important:** The target language has to match the language of the style rule list.<br/>
/// **Note:** Any request with the `style_id` parameter enabled will use `quality_optimized` models. Requests combining `style_id` and `model_type: latency_optimized` will be rejected.<br/>
/// All `model_type` values are supported.<br/>
/// Example: 7ff9bfd6-cd85-4190-8503-d6215a321519
/// </param>
/// <param name="translationMemoryId">
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </param>
/// <param name="translationMemoryThreshold">
Expand All @@ -114,8 +113,7 @@ public partial interface ITranslateTextClient
/// </param>
/// <param name="customInstructions">
/// Specify a list of instructions to customize the translation behavior. Up to 10 custom instructions can be specified, each with a maximum of 300 characters.<br/>
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.<br/>
/// **Note:** Any request with the `custom_instructions` parameter enabled will default to use the `quality_optimized` model type. Requests combining `custom_instructions` and `model_type: latency_optimized` will be rejected.
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.
/// </param>
/// <param name="tagHandling">
/// Sets which kind of tags should be handled. Options currently available:<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public sealed partial class TranslateDocumentRequest

/// <summary>
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </summary>
/// <example>a74d88fb-ed2a-4943-a664-a4512398b994</example>
Expand Down Expand Up @@ -183,7 +182,6 @@ public sealed partial class TranslateDocumentRequest
/// </param>
/// <param name="translationMemoryId">
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </param>
/// <param name="translationMemoryThreshold">
Expand Down
12 changes: 4 additions & 8 deletions src/libs/DeepL/Generated/DeepL.Models.TranslateTextRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public sealed partial class TranslateTextRequest
/// <summary>
/// Specify the [style rule list](/api-reference/style-rules) to use for the translation.<br/>
/// **Important:** The target language has to match the language of the style rule list.<br/>
/// **Note:** Any request with the `style_id` parameter enabled will use `quality_optimized` models. Requests combining `style_id` and `model_type: latency_optimized` will be rejected.<br/>
/// All `model_type` values are supported.<br/>
/// Example: 7ff9bfd6-cd85-4190-8503-d6215a321519
/// </summary>
/// <example>7ff9bfd6-cd85-4190-8503-d6215a321519</example>
Expand All @@ -126,7 +126,6 @@ public sealed partial class TranslateTextRequest

/// <summary>
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </summary>
/// <example>a74d88fb-ed2a-4943-a664-a4512398b994</example>
Expand All @@ -144,8 +143,7 @@ public sealed partial class TranslateTextRequest

/// <summary>
/// Specify a list of instructions to customize the translation behavior. Up to 10 custom instructions can be specified, each with a maximum of 300 characters.<br/>
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.<br/>
/// **Note:** Any request with the `custom_instructions` parameter enabled will default to use the `quality_optimized` model type. Requests combining `custom_instructions` and `model_type: latency_optimized` will be rejected.
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("custom_instructions")]
public global::System.Collections.Generic.IList<string>? CustomInstructions { get; set; }
Expand Down Expand Up @@ -280,12 +278,11 @@ public sealed partial class TranslateTextRequest
/// <param name="styleId">
/// Specify the [style rule list](/api-reference/style-rules) to use for the translation.<br/>
/// **Important:** The target language has to match the language of the style rule list.<br/>
/// **Note:** Any request with the `style_id` parameter enabled will use `quality_optimized` models. Requests combining `style_id` and `model_type: latency_optimized` will be rejected.<br/>
/// All `model_type` values are supported.<br/>
/// Example: 7ff9bfd6-cd85-4190-8503-d6215a321519
/// </param>
/// <param name="translationMemoryId">
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </param>
/// <param name="translationMemoryThreshold">
Expand All @@ -295,8 +292,7 @@ public sealed partial class TranslateTextRequest
/// </param>
/// <param name="customInstructions">
/// Specify a list of instructions to customize the translation behavior. Up to 10 custom instructions can be specified, each with a maximum of 300 characters.<br/>
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.<br/>
/// **Note:** Any request with the `custom_instructions` parameter enabled will default to use the `quality_optimized` model type. Requests combining `custom_instructions` and `model_type: latency_optimized` will be rejected.
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.
/// </param>
/// <param name="tagHandling">
/// Sets which kind of tags should be handled. Options currently available:<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ public sealed partial class TranslateTextRequest2

/// <summary>
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </summary>
/// <example>a74d88fb-ed2a-4943-a664-a4512398b994</example>
Expand Down Expand Up @@ -248,7 +247,6 @@ public sealed partial class TranslateTextRequest2
/// </param>
/// <param name="translationMemoryId">
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </param>
/// <param name="translationMemoryThreshold">
Expand Down
2 changes: 0 additions & 2 deletions src/libs/DeepL/Generated/DeepL.Models.TranslationMemory.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public sealed partial class TranslationMemory
{
/// <summary>
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </summary>
/// <example>a74d88fb-ed2a-4943-a664-a4512398b994</example>
Expand Down Expand Up @@ -66,7 +65,6 @@ public sealed partial class TranslationMemory
/// </summary>
/// <param name="translationMemoryId">
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </param>
/// <param name="name">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,6 @@ request.Filename is null
/// </param>
/// <param name="translationMemoryId">
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </param>
/// <param name="translationMemoryThreshold">
Expand Down Expand Up @@ -1043,7 +1042,6 @@ request.Filename is null
/// </param>
/// <param name="translationMemoryId">
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </param>
/// <param name="translationMemoryThreshold">
Expand Down Expand Up @@ -1923,7 +1921,6 @@ request.Filename is null
/// </param>
/// <param name="translationMemoryId">
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </param>
/// <param name="translationMemoryThreshold">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -872,12 +872,11 @@ partial void ProcessTranslateTextResponseContent(
/// <param name="styleId">
/// Specify the [style rule list](/api-reference/style-rules) to use for the translation.<br/>
/// **Important:** The target language has to match the language of the style rule list.<br/>
/// **Note:** Any request with the `style_id` parameter enabled will use `quality_optimized` models. Requests combining `style_id` and `model_type: latency_optimized` will be rejected.<br/>
/// All `model_type` values are supported.<br/>
/// Example: 7ff9bfd6-cd85-4190-8503-d6215a321519
/// </param>
/// <param name="translationMemoryId">
/// A unique ID assigned to a translation memory.<br/>
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
/// </param>
/// <param name="translationMemoryThreshold">
Expand All @@ -887,8 +886,7 @@ partial void ProcessTranslateTextResponseContent(
/// </param>
/// <param name="customInstructions">
/// Specify a list of instructions to customize the translation behavior. Up to 10 custom instructions can be specified, each with a maximum of 300 characters.<br/>
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.<br/>
/// **Note:** Any request with the `custom_instructions` parameter enabled will default to use the `quality_optimized` model type. Requests combining `custom_instructions` and `model_type: latency_optimized` will be rejected.
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.
/// </param>
/// <param name="tagHandling">
/// Sets which kind of tags should be handled. Options currently available:<br/>
Expand Down
6 changes: 1 addition & 5 deletions src/libs/DeepL/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ paths:

**Important:** The target language has to match the language of the style rule list.

**Note:** Any request with the `style_id` parameter enabled will use `quality_optimized` models. Requests combining `style_id` and `model_type: latency_optimized` will be rejected.
All `model_type` values are supported.
type: string
example: 7ff9bfd6-cd85-4190-8503-d6215a321519
translation_memory_id:
Expand All @@ -598,8 +598,6 @@ paths:
Specify a list of instructions to customize the translation behavior. Up to 10 custom instructions can be specified, each with a maximum of 300 characters.

**Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.

**Note:** Any request with the `custom_instructions` parameter enabled will default to use the `quality_optimized` model type. Requests combining `custom_instructions` and `model_type: latency_optimized` will be rejected.
type: array
items:
type: string
Expand Down Expand Up @@ -5431,8 +5429,6 @@ components:
format: uuid
description: |-
A unique ID assigned to a translation memory.

**Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.
example: a74d88fb-ed2a-4943-a664-a4512398b994
TranslationMemorySourceLanguage:
description: The source language of the translation memory.
Expand Down