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
10 changes: 5 additions & 5 deletions src/libs/ZAI/Generated/ZAI.Models.ChatCompletionTextRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,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 @@ -158,8 +158,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
2 changes: 1 addition & 1 deletion src/libs/ZAI/Generated/autosdk.generated-examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"Slug": "create-a-chat-completion-model-that-generates-ai-replies-for-given-conversation-messages-it-supports-multimodal-inputs-text-images-audio-video-file-offers-configurable-parameters-like-temperature-max-tokens-tool-use-and-supports-both-streaming-and-non-streaming-output-modes",
"Description": "Create a chat completion model that generates AI replies for given conversation messages. It supports multimodal inputs (text, images, audio, video, file), offers configurable parameters (like temperature, max tokens, tool use), and supports both streaming and non-streaming output modes.",
"Language": "csharp",
"Code": "using var client = new ZaiClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::ZAI.OneOf\u003Cglobal::ZAI.ChatCompletionTextRequest, global::ZAI.ChatCompletionVisionRequest\u003E\u003E(\n @\u0022{\n \u0022\u0022model\u0022\u0022: \u0022\u0022glm-5.1\u0022\u0022,\n \u0022\u0022messages\u0022\u0022: [\n {\n \u0022\u0022role\u0022\u0022: \u0022\u0022system\u0022\u0022,\n \u0022\u0022content\u0022\u0022: \u0022\u0022You are a useful AI assistant.\u0022\u0022\n },\n {\n \u0022\u0022role\u0022\u0022: \u0022\u0022user\u0022\u0022,\n \u0022\u0022content\u0022\u0022: \u0022\u0022Please tell us about the development of artificial intelligence.\u0022\u0022\n }\n ],\n \u0022\u0022temperature\u0022\u0022: 1,\n \u0022\u0022stream\u0022\u0022: false\n}\u0022)!;\n\nvar response = await client.CreatePaasV4ChatCompletionsAsync(\n request: request\n);",
"Code": "using var client = new ZaiClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::ZAI.OneOf\u003Cglobal::ZAI.ChatCompletionTextRequest, global::ZAI.ChatCompletionVisionRequest\u003E\u003E(\n @\u0022{\n \u0022\u0022model\u0022\u0022: \u0022\u0022glm-5.1\u0022\u0022,\n \u0022\u0022messages\u0022\u0022: [\n {\n \u0022\u0022role\u0022\u0022: \u0022\u0022system\u0022\u0022,\n \u0022\u0022content\u0022\u0022: \u0022\u0022You are a useful AI assistant.\u0022\u0022\n },\n {\n \u0022\u0022role\u0022\u0022: \u0022\u0022user\u0022\u0022,\n \u0022\u0022content\u0022\u0022: \u0022\u0022Please tell us about the development of artificial intelligence.\u0022\u0022\n }\n ],\n \u0022\u0022temperature\u0022\u0022: 1.0,\n \u0022\u0022stream\u0022\u0022: false\n}\u0022)!;\n\nvar response = await client.CreatePaasV4ChatCompletionsAsync(\n request: request\n);",
"Format": "sdk",
"OperationId": "createPaasV4ChatCompletions",
"Setup": "This example assumes \u0060using ZAI;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
Expand Down
Loading