Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit b08ae12

Browse files
committed
Fix Fern regeneration issues
1 parent 6a2faaa commit b08ae12

File tree

7 files changed

+22
-27
lines changed

7 files changed

+22
-27
lines changed

.fernignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ src/AssemblyAI/Core/ClientOptions.cs
1313
src/AssemblyAI/Core/JsonConfiguration.cs
1414
src/AssemblyAI/Core/Public/ApiException.cs
1515
src/AssemblyAI/Core/Public/ClientOptions.cs
16+
src/AssemblyAI/Core/CustomConstants.cs
1617
src/AssemblyAI/Types/Error.cs
17-
src/AssemblyAI/Constants.cs
1818
src/AssemblyAI/UserAgent.cs
1919
src/AssemblyAI/Event.cs
2020
src/AssemblyAI/AssemblyAIClient.cs

src/AssemblyAI/AssemblyAI.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<RootNamespace>AssemblyAI</RootNamespace>
1010
<AssemblyName>AssemblyAI</AssemblyName>
1111
<PackageId>AssemblyAI</PackageId>
12-
<Version>1.0.1</Version>
13-
<AssemblyVersion>1.0.1.0</AssemblyVersion>
14-
<FileVersion>1.0.1.0</FileVersion>
15-
<PackageVersion>1.0.1</PackageVersion>
12+
<Version>1.1.0</Version>
13+
<AssemblyVersion>1.1.0.0</AssemblyVersion>
14+
<FileVersion>1.1.0.0</FileVersion>
15+
<PackageVersion>1.1.0</PackageVersion>
1616
<Title>AssemblyAI C# .NET SDK</Title>
1717
<Authors>AssemblyAI</Authors>
1818
<Description>The AssemblyAI C# .NET SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, audio intelligence models, as well as the latest LeMUR models.</Description>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace AssemblyAI.Core;
2+
3+
internal static class CustomConstants
4+
{
5+
internal const string Version = "1.1.0";
6+
}

src/AssemblyAI/Core/Public/AssemblyAIException.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@ namespace AssemblyAI;
77
/// <summary>
88
/// Base exception class for all exceptions thrown by the SDK.
99
/// </summary>
10-
public class AssemblyAIException(string message, Exception? innerException = null)
11-
: Exception(message, innerException) { }
10+
public class AssemblyAIException : Exception
11+
{
12+
internal AssemblyAIException(string message, Exception? innerException = null)
13+
: base(message, innerException)
14+
{
15+
}
16+
}

src/AssemblyAI/Realtime/Types/Realtime.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/AssemblyAI/Transcripts/TranscriptsClient.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,13 @@ public async Task<string> GetSubtitlesAsync(
201201
{
202202
_query["chars_per_caption"] = request.CharsPerCaption.ToString();
203203
}
204+
var formatSlug = subtitleFormat == SubtitleFormat.Srt ? "srt" : "vtt";
204205
var response = await _client.MakeRequestAsync(
205206
new RawClient.JsonApiRequest
206207
{
207208
BaseUrl = _client.Options.BaseUrl,
208209
Method = HttpMethod.Get,
209-
Path = $"v2/transcript/{transcriptId}/{subtitleFormat}",
210+
Path = $"v2/transcript/{transcriptId}/{formatSlug}",
210211
Query = _query,
211212
Options = options
212213
}
@@ -307,7 +308,7 @@ public async Task<WordSearchResponse> WordSearchAsync(
307308
)
308309
{
309310
var _query = new Dictionary<string, object>() { };
310-
_query["words"] = request.Words;
311+
_query["words"] = string.Join(",", request.Words);
311312
var response = await _client.MakeRequestAsync(
312313
new RawClient.JsonApiRequest
313314
{

src/AssemblyAI/UserAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public string ToAssemblyAIUserAgentString()
4141
private static UserAgent CreateDefaultUserAgent()
4242
{
4343
var defaultUserAgent = new Dictionary<string, UserAgentItem?>();
44-
defaultUserAgent["sdk"] = new UserAgentItem("CSharp", Constants.Version);
44+
defaultUserAgent["sdk"] = new UserAgentItem("CSharp", CustomConstants.Version);
4545
#if NET462_OR_GREATER
4646
defaultUserAgent["runtime_env"] = new UserAgentItem(".NET Framework", $"{Environment.Version}");
4747
#else

0 commit comments

Comments
 (0)