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 @@ -54,10 +54,10 @@ public partial interface IZaiClient
/// Hotword list to improve recognition accuracy for domain-specific vocabulary. Format example: ["person_name","place_name"]. Recommended not to exceed 100 items.
/// </param>
/// <param name="requestId">
/// Passed by the client, must be unique. A unique identifier to distinguish each request. If not provided by the client, the platform will generate one by default.
/// Passed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.
/// </param>
/// <param name="userId">
/// A unique `ID` for the end user, helping the platform intervene in illegal activities, generation of illegal or inappropriate content, or other abusive behaviors by end users. `ID` length requirement: at least `6` characters, at most `128` characters.
/// Unique ID for the end user, 6–128 characters. Avoid using sensitive information.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down Expand Up @@ -98,10 +98,10 @@ public partial interface IZaiClient
/// Hotword list to improve recognition accuracy for domain-specific vocabulary. Format example: ["person_name","place_name"]. Recommended not to exceed 100 items.
/// </param>
/// <param name="requestId">
/// Passed by the client, must be unique. A unique identifier to distinguish each request. If not provided by the client, the platform will generate one by default.
/// Passed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.
/// </param>
/// <param name="userId">
/// A unique `ID` for the end user, helping the platform intervene in illegal activities, generation of illegal or inappropriate content, or other abusive behaviors by end users. `ID` length requirement: at least `6` characters, at most `128` characters.
/// Unique ID for the end user, 6–128 characters. Avoid using sensitive information.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down Expand Up @@ -141,10 +141,10 @@ public partial interface IZaiClient
/// Hotword list to improve recognition accuracy for domain-specific vocabulary. Format example: ["person_name","place_name"]. Recommended not to exceed 100 items.
/// </param>
/// <param name="requestId">
/// Passed by the client, must be unique. A unique identifier to distinguish each request. If not provided by the client, the platform will generate one by default.
/// Passed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.
/// </param>
/// <param name="userId">
/// A unique `ID` for the end user, helping the platform intervene in illegal activities, generation of illegal or inappropriate content, or other abusive behaviors by end users. `ID` length requirement: at least `6` characters, at most `128` characters.
/// Unique ID for the end user, 6–128 characters. Avoid using sensitive information.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public partial interface IZaiClient
/// Hotword list to improve recognition accuracy for domain-specific vocabulary. Format example: ["person_name","place_name"]. Recommended not to exceed 100 items.
/// </param>
/// <param name="requestId">
/// Passed by the client, must be unique. A unique identifier to distinguish each request. If not provided by the client, the platform will generate one by default.
/// Passed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.
/// </param>
/// <param name="userId">
/// A unique `ID` for the end user, helping the platform intervene in illegal activities, generation of illegal or inappropriate content, or other abusive behaviors by end users. `ID` length requirement: at least `6` characters, at most `128` characters.
/// Unique ID for the end user, 6–128 characters. Avoid using sensitive information.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down Expand Up @@ -85,10 +85,10 @@ public partial interface IZaiClient
/// Hotword list to improve recognition accuracy for domain-specific vocabulary. Format example: ["person_name","place_name"]. Recommended not to exceed 100 items.
/// </param>
/// <param name="requestId">
/// Passed by the client, must be unique. A unique identifier to distinguish each request. If not provided by the client, the platform will generate one by default.
/// Passed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.
/// </param>
/// <param name="userId">
/// A unique `ID` for the end user, helping the platform intervene in illegal activities, generation of illegal or inappropriate content, or other abusive behaviors by end users. `ID` length requirement: at least `6` characters, at most `128` characters.
/// Unique ID for the end user, 6–128 characters. Avoid using sensitive information.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@ public partial interface IZaiClient
/// End page number for parsing when PDF is provided
/// </param>
/// <param name="requestId">
/// Unique request identifier, automatically generated if not provided<br/>
/// Example: req_123456789
/// Passed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.
/// </param>
/// <param name="userId">
/// End user ID for abuse monitoring. Length: 6-128 characters<br/>
/// Example: user_123456
/// Unique ID for the end user, 6–128 characters. Avoid using sensitive information.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public partial interface IZaiClient
/// List of tools the model can call. Supports up to `128` functions.
/// </param>
/// <param name="requestId">
/// Passed by the client, must be unique. If empty, it will be generated by default.
/// Passed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.
/// </param>
/// <param name="userId">
/// Unique `ID` of the end user
/// Unique ID for the end user, 6–128 characters. Avoid using sensitive information.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ public partial interface IZaiClient
/// `search_pro_jina`
/// </param>
/// <param name="requestId">
/// User-provided unique identifier for distinguishing requests. If not provided, the platform will generate one.
/// Passed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.
/// </param>
/// <param name="userId">
/// Unique ID of the end user, helping the platform intervene in illegal activities, inappropriate content generation, or other abuses. ID length: 6 to 128 characters.
/// Unique ID for the end user, 6–128 characters. Avoid using sensitive information.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ public sealed partial class AudioTranscriptionRequest
public bool? Stream { get; set; }

/// <summary>
/// Passed by the client, must be unique. A unique identifier to distinguish each request. If not provided by the client, the platform will generate one by default.
/// Passed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("request_id")]
public string? RequestId { get; set; }

/// <summary>
/// A unique `ID` for the end user, helping the platform intervene in illegal activities, generation of illegal or inappropriate content, or other abusive behaviors by end users. `ID` length requirement: at least `6` characters, at most `128` characters.
/// Unique ID for the end user, 6–128 characters. Avoid using sensitive information.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("user_id")]
public string? UserId { get; set; }
Expand Down Expand Up @@ -97,10 +97,10 @@ public sealed partial class AudioTranscriptionRequest
/// Default Value: false
/// </param>
/// <param name="requestId">
/// Passed by the client, must be unique. A unique identifier to distinguish each request. If not provided by the client, the platform will generate one by default.
/// Passed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.
/// </param>
/// <param name="userId">
/// A unique `ID` for the end user, helping the platform intervene in illegal activities, generation of illegal or inappropriate content, or other abusive behaviors by end users. `ID` length requirement: at least `6` characters, at most `128` characters.
/// Unique ID for the end user, 6–128 characters. Avoid using sensitive information.
/// </param>
/// <param name="model">
/// The model ID to invoke.<br/>
Expand Down
32 changes: 16 additions & 16 deletions src/libs/ZAI/Generated/ZAI.Models.ChatCompletionTextRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ public sealed partial class ChatCompletionTextRequest
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::ZAI.OneOf<global::ZAI.ChatCompletionTextRequestMessageUserMessage, global::ZAI.ChatCompletionTextRequestMessageSystemMessage, global::ZAI.ChatCompletionTextRequestMessageAssistantMessage, global::ZAI.ChatCompletionTextRequestMessageToolMessage>> Messages { get; set; }

/// <summary>
/// Passed by the user side, needs to be unique; used to distinguish each request. If not provided by the user side, the platform will generate one by default.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("request_id")]
public string? RequestId { get; set; }

/// <summary>
/// When do_sample is true, sampling strategy is enabled; when do_sample is false, sampling strategy parameters such as temperature and top_p will not take effect. Default value is `true`.<br/>
/// Default Value: true<br/>
Expand All @@ -59,10 +53,10 @@ public sealed partial class ChatCompletionTextRequest

/// <summary>
/// Sampling temperature, controls the randomness of the output, must be a positive number within the range: `[0.0, 1.0]`. The GLM-5.1, GLM-5, GLM-4.7, GLM-4.6 series default value is `1.0`, GLM-4.5 series default value is `0.6`, GLM-4-32B-0414-128K default value is `0.75`.<br/>
/// Default Value: 1<br/>
/// Example: 1
/// Default Value: 1F<br/>
/// Example: 1F
/// </summary>
/// <example>1</example>
/// <example>1F</example>
[global::System.Text.Json.Serialization.JsonPropertyName("temperature")]
public float? Temperature { get; set; }

Expand Down Expand Up @@ -117,6 +111,12 @@ public sealed partial class ChatCompletionTextRequest
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")]
public global::ZAI.ChatCompletionTextRequestResponseFormat? ResponseFormat { get; set; }

/// <summary>
/// Passed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("request_id")]
public string? RequestId { get; set; }

/// <summary>
/// Unique ID for the end user, 6–128 characters. Avoid using sensitive information.
/// </summary>
Expand All @@ -140,9 +140,6 @@ public sealed partial class ChatCompletionTextRequest
/// <param name="messages">
/// The current conversation message list as the model’s prompt input, provided in JSON array format, e.g.,`{“role”: “user”, “content”: “Hello”}`. Possible message types include system messages, user messages, assistant messages, and tool messages. Note: The input must not consist of system messages or assistant messages only.
/// </param>
/// <param name="requestId">
/// Passed by the user side, needs to be unique; used to distinguish each request. If not provided by the user side, the platform will generate one by default.
/// </param>
/// <param name="doSample">
/// When do_sample is true, sampling strategy is enabled; when do_sample is false, sampling strategy parameters such as temperature and top_p will not take effect. Default value is `true`.<br/>
/// Default Value: true<br/>
Expand All @@ -158,8 +155,8 @@ public sealed partial class ChatCompletionTextRequest
/// </param>
/// <param name="temperature">
/// Sampling temperature, controls the randomness of the output, must be a positive number within the range: `[0.0, 1.0]`. The GLM-5.1, GLM-5, GLM-4.7, GLM-4.6 series default value is `1.0`, GLM-4.5 series default value is `0.6`, GLM-4-32B-0414-128K default value is `0.75`.<br/>
/// Default Value: 1<br/>
/// Example: 1
/// Default Value: 1F<br/>
/// Example: 1F
/// </param>
/// <param name="topP">
/// Another method of temperature sampling, value range is: `[0.01, 1.0]`. The GLM-5.1, GLM-5, GLM-4.7, GLM-4.6, GLM-4.5 series default value is `0.95`, GLM-4-32B-0414-128K default value is `0.9`.<br/>
Expand Down Expand Up @@ -187,6 +184,9 @@ public sealed partial class ChatCompletionTextRequest
/// <param name="responseFormat">
/// Specifies the response format of the model. Defaults to text. Supports two formats:{ "type": "text" } plain text mode, returns natural language text, { "type": "json_object" } JSON mode, returns valid JSON data. When using JSON mode, it’s recommended to clearly request JSON output in the prompt.
/// </param>
/// <param name="requestId">
/// Passed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.
/// </param>
/// <param name="userId">
/// Unique ID for the end user, 6–128 characters. Avoid using sensitive information.
/// </param>
Expand All @@ -196,7 +196,6 @@ public sealed partial class ChatCompletionTextRequest
public ChatCompletionTextRequest(
global::ZAI.ChatCompletionTextRequestModel model,
global::System.Collections.Generic.IList<global::ZAI.OneOf<global::ZAI.ChatCompletionTextRequestMessageUserMessage, global::ZAI.ChatCompletionTextRequestMessageSystemMessage, global::ZAI.ChatCompletionTextRequestMessageAssistantMessage, global::ZAI.ChatCompletionTextRequestMessageToolMessage>> messages,
string? requestId,
bool? doSample,
bool? stream,
global::ZAI.ChatThinking? thinking,
Expand All @@ -208,11 +207,11 @@ public ChatCompletionTextRequest(
global::ZAI.ChatCompletionTextRequestToolChoice? toolChoice,
global::System.Collections.Generic.IList<string>? stop,
global::ZAI.ChatCompletionTextRequestResponseFormat? responseFormat,
string? requestId,
string? userId)
{
this.Model = model;
this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages));
this.RequestId = requestId;
this.DoSample = doSample;
this.Stream = stream;
this.Thinking = thinking;
Expand All @@ -224,6 +223,7 @@ public ChatCompletionTextRequest(
this.ToolChoice = toolChoice;
this.Stop = stop;
this.ResponseFormat = responseFormat;
this.RequestId = requestId;
this.UserId = userId;
}

Expand Down
Loading