Skip to content

Commit 5dcc380

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#245)
Co-authored-by: github-actions[bot] <[email protected]>
1 parent ceb5dd3 commit 5dcc380

File tree

6 files changed

+32
-1
lines changed

6 files changed

+32
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ partial void ProcessEmbedv2ResponseContent(
638638
/// * `"uint8"`: Use this when you want to get back unsigned int8 embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
639639
/// * `"binary"`: Use this when you want to get back signed binary embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
640640
/// * `"ubinary"`: Use this when you want to get back unsigned binary embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
641+
/// * `"base64"`: Use this when you want to get back base64 embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
641642
/// Default Value: [float]<br/>
642643
/// Included only in requests
643644
/// </param>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public partial interface ICohereClient
3333
/// * `"uint8"`: Use this when you want to get back unsigned int8 embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
3434
/// * `"binary"`: Use this when you want to get back signed binary embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
3535
/// * `"ubinary"`: Use this when you want to get back unsigned binary embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
36+
/// * `"base64"`: Use this when you want to get back base64 embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
3637
/// Default Value: [float]<br/>
3738
/// Included only in requests
3839
/// </param>

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ namespace Cohere
88
/// </summary>
99
public sealed partial class EmbedByTypeResponseEmbeddings
1010
{
11+
/// <summary>
12+
/// An array of base64 embeddings. Each string is the result of appending the float embedding bytes together and base64 encoding that.
13+
/// </summary>
14+
[global::System.Text.Json.Serialization.JsonPropertyName("base64")]
15+
public global::System.Collections.Generic.IList<string>? Base64 { get; set; }
16+
1117
/// <summary>
1218
/// An array of packed signed binary embeddings. The length of each binary embedding is 1/8 the length of the float embeddings of the provided model. Each value is between -128 and 127.
1319
/// </summary>
@@ -47,6 +53,9 @@ public sealed partial class EmbedByTypeResponseEmbeddings
4753
/// <summary>
4854
/// Initializes a new instance of the <see cref="EmbedByTypeResponseEmbeddings" /> class.
4955
/// </summary>
56+
/// <param name="base64">
57+
/// An array of base64 embeddings. Each string is the result of appending the float embedding bytes together and base64 encoding that.
58+
/// </param>
5059
/// <param name="binary">
5160
/// An array of packed signed binary embeddings. The length of each binary embedding is 1/8 the length of the float embeddings of the provided model. Each value is between -128 and 127.
5261
/// </param>
@@ -66,12 +75,14 @@ public sealed partial class EmbedByTypeResponseEmbeddings
6675
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
6776
#endif
6877
public EmbedByTypeResponseEmbeddings(
78+
global::System.Collections.Generic.IList<string>? base64,
6979
global::System.Collections.Generic.IList<global::System.Collections.Generic.IList<int>>? binary,
7080
global::System.Collections.Generic.IList<global::System.Collections.Generic.IList<double>>? @float,
7181
global::System.Collections.Generic.IList<global::System.Collections.Generic.IList<int>>? int8,
7282
global::System.Collections.Generic.IList<global::System.Collections.Generic.IList<int>>? ubinary,
7383
global::System.Collections.Generic.IList<global::System.Collections.Generic.IList<int>>? uint8)
7484
{
85+
this.Base64 = base64;
7586
this.Binary = binary;
7687
this.Float = @float;
7788
this.Int8 = int8;

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public enum EmbeddingType
2828
///
2929
/// </summary>
3030
Ubinary,
31+
/// <summary>
32+
///
33+
/// </summary>
34+
Base64,
3135
}
3236

3337
/// <summary>
@@ -47,6 +51,7 @@ public static string ToValueString(this EmbeddingType value)
4751
EmbeddingType.Uint8 => "uint8",
4852
EmbeddingType.Binary => "binary",
4953
EmbeddingType.Ubinary => "ubinary",
54+
EmbeddingType.Base64 => "base64",
5055
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
5156
};
5257
}
@@ -62,6 +67,7 @@ public static string ToValueString(this EmbeddingType value)
6267
"uint8" => EmbeddingType.Uint8,
6368
"binary" => EmbeddingType.Binary,
6469
"ubinary" => EmbeddingType.Ubinary,
70+
"base64" => EmbeddingType.Base64,
6571
_ => null,
6672
};
6773
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public sealed partial class Embedv2Request
1515
/// * `"uint8"`: Use this when you want to get back unsigned int8 embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
1616
/// * `"binary"`: Use this when you want to get back signed binary embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
1717
/// * `"ubinary"`: Use this when you want to get back unsigned binary embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
18+
/// * `"base64"`: Use this when you want to get back base64 embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
1819
/// Default Value: [float]<br/>
1920
/// Included only in requests
2021
/// </summary>
@@ -102,6 +103,7 @@ public sealed partial class Embedv2Request
102103
/// * `"uint8"`: Use this when you want to get back unsigned int8 embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
103104
/// * `"binary"`: Use this when you want to get back signed binary embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
104105
/// * `"ubinary"`: Use this when you want to get back unsigned binary embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
106+
/// * `"base64"`: Use this when you want to get back base64 embeddings. Supported with Embed v3.0 and newer Embed models.<br/>
105107
/// Default Value: [float]<br/>
106108
/// Included only in requests
107109
/// </param>

src/libs/Cohere/openapi.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8861,7 +8861,7 @@ paths:
88618861
type: array
88628862
items:
88638863
$ref: '#/components/schemas/EmbeddingType'
8864-
description: "Specifies the types of embeddings you want to get back. Can be one or more of the following types.\n\n* `\"float\"`: Use this when you want to get back the default float embeddings. Supported with all Embed models.\n* `\"int8\"`: Use this when you want to get back signed int8 embeddings. Supported with Embed v3.0 and newer Embed models.\n* `\"uint8\"`: Use this when you want to get back unsigned int8 embeddings. Supported with Embed v3.0 and newer Embed models.\n* `\"binary\"`: Use this when you want to get back signed binary embeddings. Supported with Embed v3.0 and newer Embed models.\n* `\"ubinary\"`: Use this when you want to get back unsigned binary embeddings. Supported with Embed v3.0 and newer Embed models."
8864+
description: "Specifies the types of embeddings you want to get back. Can be one or more of the following types.\n\n* `\"float\"`: Use this when you want to get back the default float embeddings. Supported with all Embed models.\n* `\"int8\"`: Use this when you want to get back signed int8 embeddings. Supported with Embed v3.0 and newer Embed models.\n* `\"uint8\"`: Use this when you want to get back unsigned int8 embeddings. Supported with Embed v3.0 and newer Embed models.\n* `\"binary\"`: Use this when you want to get back signed binary embeddings. Supported with Embed v3.0 and newer Embed models.\n* `\"ubinary\"`: Use this when you want to get back unsigned binary embeddings. Supported with Embed v3.0 and newer Embed models.\n* `\"base64\"`: Use this when you want to get back base64 embeddings. Supported with Embed v3.0 and newer Embed models."
88658865
default:
88668866
- float
88678867
writeOnly: true
@@ -13937,6 +13937,15 @@ components:
1393713937
x-fern-audiences:
1393813938
- public
1393913939
properties:
13940+
base64:
13941+
type: array
13942+
items:
13943+
type: string
13944+
x-fern-audiences:
13945+
- public
13946+
description: An array of base64 embeddings. Each string is the result of appending the float embedding bytes together and base64 encoding that.
13947+
x-fern-audiences:
13948+
- public
1394013949
binary:
1394113950
type: array
1394213951
items:
@@ -16436,6 +16445,7 @@ components:
1643616445
- uint8
1643716446
- binary
1643816447
- ubinary
16448+
- base64
1643916449
type: string
1644016450
writeOnly: true
1644116451
x-fern-audiences:

0 commit comments

Comments
 (0)