Skip to content

Commit 29c08f3

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#243)
Co-authored-by: github-actions[bot] <[email protected]>
1 parent 727b60c commit 29c08f3

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

src/libs/Cohere/Generated/Cohere.CohereClient.Chatv2.g.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,7 @@ partial void ProcessChatv2ResponseContent(
720720
/// Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.<br/>
721721
/// When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.<br/>
722722
/// If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.<br/>
723-
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.<br/>
724-
/// **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
723+
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
725724
/// </param>
726725
/// <param name="tools">
727726
/// A list of tools (functions) available to the model. The model response may contain 'tool_calls' to the specified tools.<br/>

src/libs/Cohere/Generated/Cohere.ICohereClient.Chatv2.g.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ public partial interface ICohereClient
115115
/// Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.<br/>
116116
/// When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.<br/>
117117
/// If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.<br/>
118-
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.<br/>
119-
/// **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
118+
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
120119
/// </param>
121120
/// <param name="tools">
122121
/// A list of tools (functions) available to the model. The model response may contain 'tool_calls' to the specified tools.<br/>

src/libs/Cohere/Generated/Cohere.Models.Chatv2Request.g.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ public sealed partial class Chatv2Request
162162
/// Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.<br/>
163163
/// When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.<br/>
164164
/// If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.<br/>
165-
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.<br/>
166-
/// **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
165+
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
167166
/// </summary>
168167
[global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")]
169168
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Cohere.JsonConverters.Chatv2RequestToolChoiceJsonConverter))]
@@ -276,8 +275,7 @@ public sealed partial class Chatv2Request
276275
/// Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.<br/>
277276
/// When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.<br/>
278277
/// If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.<br/>
279-
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.<br/>
280-
/// **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
278+
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
281279
/// </param>
282280
/// <param name="tools">
283281
/// A list of tools (functions) available to the model. The model response may contain 'tool_calls' to the specified tools.<br/>

src/libs/Cohere/Generated/Cohere.Models.Chatv2RequestToolChoice.g.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@ namespace Cohere
77
/// Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.<br/>
88
/// When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.<br/>
99
/// If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.<br/>
10-
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.<br/>
11-
/// **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
10+
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
1211
/// </summary>
1312
public enum Chatv2RequestToolChoice
1413
{
1514
/// <summary>
16-
/// The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
15+
///
1716
/// </summary>
1817
REQUIRED,
1918
/// <summary>
20-
/// The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
19+
///
2120
/// </summary>
2221
NONE,
2322
}

src/libs/Cohere/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7499,7 +7499,7 @@ paths:
74997499
enum:
75007500
- REQUIRED
75017501
- NONE
7502-
description: "Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.\nWhen `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.\nIf tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.\n\n**Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.\n\n**Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.\n"
7502+
description: "Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.\nWhen `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.\nIf tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.\n\n**Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.\n"
75037503
x-fern-audiences:
75047504
- public
75057505
tools:

0 commit comments

Comments
 (0)