You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#13 - Update model references from grok-3-mini-beta to grok-3-mini
This commit updates all instances of the model "grok-3-mini-beta" to "grok-3-mini" across various files, including test classes, API documentation, and model descriptions. Test cases have been modified to reflect new prompts and assertions related to reasoning efforts. Additionally, validation of streamed content and JSON responses has been adjusted, and comments in the API documentation have been updated for consistency with the new model naming conventions.
varclient=newGrokClient(httpClient,ApiToken??thrownewException("API Token not set"));
21
21
22
22
varprompt=
23
-
"A car travels 60 miles per hour for 2 hours, then 30 miles per hour for 1 hour. What is the average speed for the entire trip?";
23
+
"A complex logistics problem: A delivery company has 5 trucks with different capacities (10, 15, 20, 25, 30 tons). They need to deliver packages to 12 cities with varying distances (ranging from 50 to 500 miles) and different delivery time windows. Each truck has different fuel efficiency rates, and fuel costs vary by location. The company wants to minimize total cost while ensuring all deliveries are completed on time. Additionally, some trucks require maintenance after certain mileage, and driver work-hour regulations must be considered. Calculate the optimal delivery strategy and explain the reasoning behind each decision, including alternative approaches that were considered and why they were rejected.";
24
24
25
25
// Helper method to get response for a given reasoning effort
/// <br/>use the `reasoning_effort` parameter to control thinking effort and access
97
97
/// <br/>the reasoning trace via `reasoning_content` and token details via `completion_tokens_details`.
98
98
/// </remarks>
@@ -445,7 +445,7 @@ public partial class GrokChatCompletionRequest
445
445
publicTool_choice?Tool_choice{get;set;}
446
446
447
447
/// <summary>
448
-
/// Controls how much time the model spends thinking before responding. Only applicable for reasoning-capable models (e.g., grok-3-mini-beta, grok-3-mini-fast-beta). 'low' for quick responses, 'high' for complex reasoning.
448
+
/// Controls how much time the model spends thinking before responding. Only applicable for reasoning-capable models (e.g., grok-3-mini, grok-3-mini-fast). 'low' for quick responses, 'high' for complex reasoning.
/// The model's thought process before generating the response. Only present for reasoning-capable models (e.g., grok-3-mini-beta, grok-3-mini-fast-beta).
596
+
/// The model's thought process before generating the response. Only present for reasoning-capable models (e.g., grok-3-mini, grok-3-mini-fast).
Copy file name to clipboardExpand all lines: src/GrokSdk/grok-api.yaml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ paths:
12
12
summary: Create a chat completion with Grok
13
13
description: |
14
14
Generates a chat completion using the specified model.
15
-
For reasoning-capable models (e.g., grok-3-mini-beta, grok-3-mini-fast-beta),
15
+
For reasoning-capable models (e.g., grok-3-mini, grok-3-mini-fast),
16
16
use the `reasoning_effort` parameter to control thinking effort and access
17
17
the reasoning trace via `reasoning_content` and token details via `completion_tokens_details`.
18
18
operationId: createChatCompletion
@@ -130,7 +130,7 @@ components:
130
130
- high
131
131
nullable: true
132
132
default: null
133
-
description: Controls how much time the model spends thinking before responding. Only applicable for reasoning-capable models (e.g., grok-3-mini-beta, grok-3-mini-fast-beta). 'low' for quick responses, 'high' for complex reasoning.
133
+
description: Controls how much time the model spends thinking before responding. Only applicable for reasoning-capable models (e.g., grok-3-mini, grok-3-mini-fast). 'low' for quick responses, 'high' for complex reasoning.
134
134
search_parameters:
135
135
$ref: '#/components/schemas/GrokSearchParameters'
136
136
description: Parameters for live search functionality. Optional and defaults to null if not provided.
@@ -238,7 +238,7 @@ components:
238
238
description: List of tool calls requested by the assistant
239
239
reasoning_content:
240
240
type: string
241
-
description: The model's thought process before generating the response. Only present for reasoning-capable models (e.g., grok-3-mini-beta, grok-3-mini-fast-beta).
241
+
description: The model's thought process before generating the response. Only present for reasoning-capable models (e.g., grok-3-mini, grok-3-mini-fast).
0 commit comments