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
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,38 @@ partial void ProcessCallControllerDeleteCallDataResponseContent(
retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
if ((int)__response.StatusCode == 503)
{
string? __content_503 = null;
global::System.Exception? __exception_503 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
}
else
{
__content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
{
__exception_503 = __ex;
}


throw global::Vapi.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_503,
responseBody: __content_503,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}

if (__effectiveReadResponseAsString)
{
Expand Down
42 changes: 42 additions & 0 deletions src/libs/Vapi/Generated/Vapi.Models.DeepgramVoiceVoiceId.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public enum DeepgramVoiceVoiceId
/// <summary>
///
/// </summary>
Aurelia,
/// <summary>
///
/// </summary>
Aurora,
/// <summary>
///
Expand Down Expand Up @@ -91,6 +95,10 @@ public enum DeepgramVoiceVoiceId
/// <summary>
///
/// </summary>
Elara,
/// <summary>
///
/// </summary>
Electra,
/// <summary>
///
Expand All @@ -99,6 +107,10 @@ public enum DeepgramVoiceVoiceId
/// <summary>
///
/// </summary>
Fabian,
/// <summary>
///
/// </summary>
Harmonia,
/// <summary>
///
Expand Down Expand Up @@ -135,6 +147,10 @@ public enum DeepgramVoiceVoiceId
/// <summary>
///
/// </summary>
Julius,
/// <summary>
///
/// </summary>
Juno,
/// <summary>
///
Expand All @@ -143,6 +159,14 @@ public enum DeepgramVoiceVoiceId
/// <summary>
///
/// </summary>
Kara,
/// <summary>
///
/// </summary>
Lara,
/// <summary>
///
/// </summary>
Luna,
/// <summary>
///
Expand Down Expand Up @@ -227,6 +251,10 @@ public enum DeepgramVoiceVoiceId
/// <summary>
///
/// </summary>
Viktoria,
/// <summary>
///
/// </summary>
Zeus,
}

Expand All @@ -253,6 +281,7 @@ public static string ToValueString(this DeepgramVoiceVoiceId value)
DeepgramVoiceVoiceId.Asteria => "asteria",
DeepgramVoiceVoiceId.Athena => "athena",
DeepgramVoiceVoiceId.Atlas => "atlas",
DeepgramVoiceVoiceId.Aurelia => "aurelia",
DeepgramVoiceVoiceId.Aurora => "aurora",
DeepgramVoiceVoiceId.Callista => "callista",
DeepgramVoiceVoiceId.Carina => "carina",
Expand All @@ -262,8 +291,10 @@ public static string ToValueString(this DeepgramVoiceVoiceId value)
DeepgramVoiceVoiceId.Delia => "delia",
DeepgramVoiceVoiceId.Diana => "diana",
DeepgramVoiceVoiceId.Draco => "draco",
DeepgramVoiceVoiceId.Elara => "elara",
DeepgramVoiceVoiceId.Electra => "electra",
DeepgramVoiceVoiceId.Estrella => "estrella",
DeepgramVoiceVoiceId.Fabian => "fabian",
DeepgramVoiceVoiceId.Harmonia => "harmonia",
DeepgramVoiceVoiceId.Helena => "helena",
DeepgramVoiceVoiceId.Helios => "helios",
Expand All @@ -273,8 +304,11 @@ public static string ToValueString(this DeepgramVoiceVoiceId value)
DeepgramVoiceVoiceId.Iris => "iris",
DeepgramVoiceVoiceId.Janus => "janus",
DeepgramVoiceVoiceId.Javier => "javier",
DeepgramVoiceVoiceId.Julius => "julius",
DeepgramVoiceVoiceId.Juno => "juno",
DeepgramVoiceVoiceId.Jupiter => "jupiter",
DeepgramVoiceVoiceId.Kara => "kara",
DeepgramVoiceVoiceId.Lara => "lara",
DeepgramVoiceVoiceId.Luna => "luna",
DeepgramVoiceVoiceId.Mars => "mars",
DeepgramVoiceVoiceId.Minerva => "minerva",
Expand All @@ -296,6 +330,7 @@ public static string ToValueString(this DeepgramVoiceVoiceId value)
DeepgramVoiceVoiceId.Thalia => "thalia",
DeepgramVoiceVoiceId.Theia => "theia",
DeepgramVoiceVoiceId.Vesta => "vesta",
DeepgramVoiceVoiceId.Viktoria => "viktoria",
DeepgramVoiceVoiceId.Zeus => "zeus",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
Expand All @@ -318,6 +353,7 @@ public static string ToValueString(this DeepgramVoiceVoiceId value)
"asteria" => DeepgramVoiceVoiceId.Asteria,
"athena" => DeepgramVoiceVoiceId.Athena,
"atlas" => DeepgramVoiceVoiceId.Atlas,
"aurelia" => DeepgramVoiceVoiceId.Aurelia,
"aurora" => DeepgramVoiceVoiceId.Aurora,
"callista" => DeepgramVoiceVoiceId.Callista,
"carina" => DeepgramVoiceVoiceId.Carina,
Expand All @@ -327,8 +363,10 @@ public static string ToValueString(this DeepgramVoiceVoiceId value)
"delia" => DeepgramVoiceVoiceId.Delia,
"diana" => DeepgramVoiceVoiceId.Diana,
"draco" => DeepgramVoiceVoiceId.Draco,
"elara" => DeepgramVoiceVoiceId.Elara,
"electra" => DeepgramVoiceVoiceId.Electra,
"estrella" => DeepgramVoiceVoiceId.Estrella,
"fabian" => DeepgramVoiceVoiceId.Fabian,
"harmonia" => DeepgramVoiceVoiceId.Harmonia,
"helena" => DeepgramVoiceVoiceId.Helena,
"helios" => DeepgramVoiceVoiceId.Helios,
Expand All @@ -338,8 +376,11 @@ public static string ToValueString(this DeepgramVoiceVoiceId value)
"iris" => DeepgramVoiceVoiceId.Iris,
"janus" => DeepgramVoiceVoiceId.Janus,
"javier" => DeepgramVoiceVoiceId.Javier,
"julius" => DeepgramVoiceVoiceId.Julius,
"juno" => DeepgramVoiceVoiceId.Juno,
"jupiter" => DeepgramVoiceVoiceId.Jupiter,
"kara" => DeepgramVoiceVoiceId.Kara,
"lara" => DeepgramVoiceVoiceId.Lara,
"luna" => DeepgramVoiceVoiceId.Luna,
"mars" => DeepgramVoiceVoiceId.Mars,
"minerva" => DeepgramVoiceVoiceId.Minerva,
Expand All @@ -361,6 +402,7 @@ public static string ToValueString(this DeepgramVoiceVoiceId value)
"thalia" => DeepgramVoiceVoiceId.Thalia,
"theia" => DeepgramVoiceVoiceId.Theia,
"vesta" => DeepgramVoiceVoiceId.Vesta,
"viktoria" => DeepgramVoiceVoiceId.Viktoria,
"zeus" => DeepgramVoiceVoiceId.Zeus,
_ => null,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public enum FallbackDeepgramVoiceVoiceId
/// <summary>
///
/// </summary>
Aurelia,
/// <summary>
///
/// </summary>
Aurora,
/// <summary>
///
Expand Down Expand Up @@ -91,6 +95,10 @@ public enum FallbackDeepgramVoiceVoiceId
/// <summary>
///
/// </summary>
Elara,
/// <summary>
///
/// </summary>
Electra,
/// <summary>
///
Expand All @@ -99,6 +107,10 @@ public enum FallbackDeepgramVoiceVoiceId
/// <summary>
///
/// </summary>
Fabian,
/// <summary>
///
/// </summary>
Harmonia,
/// <summary>
///
Expand Down Expand Up @@ -135,6 +147,10 @@ public enum FallbackDeepgramVoiceVoiceId
/// <summary>
///
/// </summary>
Julius,
/// <summary>
///
/// </summary>
Juno,
/// <summary>
///
Expand All @@ -143,6 +159,14 @@ public enum FallbackDeepgramVoiceVoiceId
/// <summary>
///
/// </summary>
Kara,
/// <summary>
///
/// </summary>
Lara,
/// <summary>
///
/// </summary>
Luna,
/// <summary>
///
Expand Down Expand Up @@ -227,6 +251,10 @@ public enum FallbackDeepgramVoiceVoiceId
/// <summary>
///
/// </summary>
Viktoria,
/// <summary>
///
/// </summary>
Zeus,
}

Expand All @@ -253,6 +281,7 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value)
FallbackDeepgramVoiceVoiceId.Asteria => "asteria",
FallbackDeepgramVoiceVoiceId.Athena => "athena",
FallbackDeepgramVoiceVoiceId.Atlas => "atlas",
FallbackDeepgramVoiceVoiceId.Aurelia => "aurelia",
FallbackDeepgramVoiceVoiceId.Aurora => "aurora",
FallbackDeepgramVoiceVoiceId.Callista => "callista",
FallbackDeepgramVoiceVoiceId.Carina => "carina",
Expand All @@ -262,8 +291,10 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value)
FallbackDeepgramVoiceVoiceId.Delia => "delia",
FallbackDeepgramVoiceVoiceId.Diana => "diana",
FallbackDeepgramVoiceVoiceId.Draco => "draco",
FallbackDeepgramVoiceVoiceId.Elara => "elara",
FallbackDeepgramVoiceVoiceId.Electra => "electra",
FallbackDeepgramVoiceVoiceId.Estrella => "estrella",
FallbackDeepgramVoiceVoiceId.Fabian => "fabian",
FallbackDeepgramVoiceVoiceId.Harmonia => "harmonia",
FallbackDeepgramVoiceVoiceId.Helena => "helena",
FallbackDeepgramVoiceVoiceId.Helios => "helios",
Expand All @@ -273,8 +304,11 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value)
FallbackDeepgramVoiceVoiceId.Iris => "iris",
FallbackDeepgramVoiceVoiceId.Janus => "janus",
FallbackDeepgramVoiceVoiceId.Javier => "javier",
FallbackDeepgramVoiceVoiceId.Julius => "julius",
FallbackDeepgramVoiceVoiceId.Juno => "juno",
FallbackDeepgramVoiceVoiceId.Jupiter => "jupiter",
FallbackDeepgramVoiceVoiceId.Kara => "kara",
FallbackDeepgramVoiceVoiceId.Lara => "lara",
FallbackDeepgramVoiceVoiceId.Luna => "luna",
FallbackDeepgramVoiceVoiceId.Mars => "mars",
FallbackDeepgramVoiceVoiceId.Minerva => "minerva",
Expand All @@ -296,6 +330,7 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value)
FallbackDeepgramVoiceVoiceId.Thalia => "thalia",
FallbackDeepgramVoiceVoiceId.Theia => "theia",
FallbackDeepgramVoiceVoiceId.Vesta => "vesta",
FallbackDeepgramVoiceVoiceId.Viktoria => "viktoria",
FallbackDeepgramVoiceVoiceId.Zeus => "zeus",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
Expand All @@ -318,6 +353,7 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value)
"asteria" => FallbackDeepgramVoiceVoiceId.Asteria,
"athena" => FallbackDeepgramVoiceVoiceId.Athena,
"atlas" => FallbackDeepgramVoiceVoiceId.Atlas,
"aurelia" => FallbackDeepgramVoiceVoiceId.Aurelia,
"aurora" => FallbackDeepgramVoiceVoiceId.Aurora,
"callista" => FallbackDeepgramVoiceVoiceId.Callista,
"carina" => FallbackDeepgramVoiceVoiceId.Carina,
Expand All @@ -327,8 +363,10 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value)
"delia" => FallbackDeepgramVoiceVoiceId.Delia,
"diana" => FallbackDeepgramVoiceVoiceId.Diana,
"draco" => FallbackDeepgramVoiceVoiceId.Draco,
"elara" => FallbackDeepgramVoiceVoiceId.Elara,
"electra" => FallbackDeepgramVoiceVoiceId.Electra,
"estrella" => FallbackDeepgramVoiceVoiceId.Estrella,
"fabian" => FallbackDeepgramVoiceVoiceId.Fabian,
"harmonia" => FallbackDeepgramVoiceVoiceId.Harmonia,
"helena" => FallbackDeepgramVoiceVoiceId.Helena,
"helios" => FallbackDeepgramVoiceVoiceId.Helios,
Expand All @@ -338,8 +376,11 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value)
"iris" => FallbackDeepgramVoiceVoiceId.Iris,
"janus" => FallbackDeepgramVoiceVoiceId.Janus,
"javier" => FallbackDeepgramVoiceVoiceId.Javier,
"julius" => FallbackDeepgramVoiceVoiceId.Julius,
"juno" => FallbackDeepgramVoiceVoiceId.Juno,
"jupiter" => FallbackDeepgramVoiceVoiceId.Jupiter,
"kara" => FallbackDeepgramVoiceVoiceId.Kara,
"lara" => FallbackDeepgramVoiceVoiceId.Lara,
"luna" => FallbackDeepgramVoiceVoiceId.Luna,
"mars" => FallbackDeepgramVoiceVoiceId.Mars,
"minerva" => FallbackDeepgramVoiceVoiceId.Minerva,
Expand All @@ -361,6 +402,7 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value)
"thalia" => FallbackDeepgramVoiceVoiceId.Thalia,
"theia" => FallbackDeepgramVoiceVoiceId.Theia,
"vesta" => FallbackDeepgramVoiceVoiceId.Vesta,
"viktoria" => FallbackDeepgramVoiceVoiceId.Viktoria,
"zeus" => FallbackDeepgramVoiceVoiceId.Zeus,
_ => null,
};
Expand Down
15 changes: 14 additions & 1 deletion src/libs/Vapi/Generated/Vapi.Models.ModelCost.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ public sealed partial class ModelCost
[global::System.Text.Json.Serialization.JsonPropertyName("cachedPromptTokens")]
public double? CachedPromptTokens { get; set; }

/// <summary>
/// This is the number of reasoning tokens generated in the call. This is only applicable to reasoning models (e.g., OpenAI o-series, GPT-5) on providers that report them.<br/>
/// This is a **subset of `completionTokens`**, not an addition to it: reasoning tokens are already counted in `completionTokens` and are already billed at the output-token rate. It is reported separately for visibility only and does not affect `cost`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("reasoningTokens")]
public double? ReasoningTokens { get; set; }

/// <summary>
/// This is the cost of the component in USD.
/// </summary>
Expand Down Expand Up @@ -90,6 +97,10 @@ public sealed partial class ModelCost
/// <param name="cachedPromptTokens">
/// This is the number of cached prompt tokens used in the call. This is only applicable to certain providers (e.g., OpenAI, Azure OpenAI) that support prompt caching. Cached tokens are billed at a discounted rate.
/// </param>
/// <param name="reasoningTokens">
/// This is the number of reasoning tokens generated in the call. This is only applicable to reasoning models (e.g., OpenAI o-series, GPT-5) on providers that report them.<br/>
/// This is a **subset of `completionTokens`**, not an addition to it: reasoning tokens are already counted in `completionTokens` and are already billed at the output-token rate. It is reported separately for visibility only and does not affect `cost`.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -99,13 +110,15 @@ public ModelCost(
double completionTokens,
double cost,
global::Vapi.ModelCostType type,
double? cachedPromptTokens)
double? cachedPromptTokens,
double? reasoningTokens)
{
this.Type = type;
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.PromptTokens = promptTokens;
this.CompletionTokens = completionTokens;
this.CachedPromptTokens = cachedPromptTokens;
this.ReasoningTokens = reasoningTokens;
this.Cost = cost;
}

Expand Down
Loading