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 @@ -454,6 +454,9 @@ partial void ProcessCreateChatCompletionResponseContent(
/// <param name="prompt">
/// A simple string prompt. The API will automatically convert this into a user message.
/// </param>
/// <param name="transcriptId">
/// Optional. The ID of an AssemblyAI transcript whose text replaces the first `{{ transcript }}` tag in the prompt. See [Inject a transcript by ID](https://www.assemblyai.com/docs/llm-gateway/chat-completions#inject-a-transcript-by-id) for substitution rules and edge cases.
/// </param>
/// <param name="model">
/// The ID of the model to use for this request. See [LLM Gateway Overview](https://www.assemblyai.com/docs/llm-gateway/overview#available-models) for available models.
/// </param>
Expand Down Expand Up @@ -494,6 +497,7 @@ partial void ProcessCreateChatCompletionResponseContent(
string model,
global::System.Collections.Generic.IList<global::AssemblyAI.Message>? messages = default,
string? prompt = default,
string? transcriptId = default,
int? maxTokens = default,
double? temperature = default,
bool? stream = default,
Expand All @@ -510,6 +514,7 @@ partial void ProcessCreateChatCompletionResponseContent(
{
Messages = messages,
Prompt = prompt,
TranscriptId = transcriptId,
Model = model,
MaxTokens = maxTokens,
Temperature = temperature,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public partial interface IAssemblyAIClient
/// <param name="prompt">
/// A simple string prompt. The API will automatically convert this into a user message.
/// </param>
/// <param name="transcriptId">
/// Optional. The ID of an AssemblyAI transcript whose text replaces the first `{{ transcript }}` tag in the prompt. See [Inject a transcript by ID](https://www.assemblyai.com/docs/llm-gateway/chat-completions#inject-a-transcript-by-id) for substitution rules and edge cases.
/// </param>
/// <param name="model">
/// The ID of the model to use for this request. See [LLM Gateway Overview](https://www.assemblyai.com/docs/llm-gateway/overview#available-models) for available models.
/// </param>
Expand Down Expand Up @@ -97,6 +100,7 @@ public partial interface IAssemblyAIClient
string model,
global::System.Collections.Generic.IList<global::AssemblyAI.Message>? messages = default,
string? prompt = default,
string? transcriptId = default,
int? maxTokens = default,
double? temperature = default,
bool? stream = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ public sealed partial class LLMGatewayRequest
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
public string? Prompt { get; set; }

/// <summary>
/// Optional. The ID of an AssemblyAI transcript whose text replaces the first `{{ transcript }}` tag in the prompt. See [Inject a transcript by ID](https://www.assemblyai.com/docs/llm-gateway/chat-completions#inject-a-transcript-by-id) for substitution rules and edge cases.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("transcript_id")]
public string? TranscriptId { get; set; }

/// <summary>
/// The ID of the model to use for this request. See [LLM Gateway Overview](https://www.assemblyai.com/docs/llm-gateway/overview#available-models) for available models.
/// </summary>
Expand Down Expand Up @@ -102,6 +108,9 @@ public sealed partial class LLMGatewayRequest
/// <param name="prompt">
/// A simple string prompt. The API will automatically convert this into a user message.
/// </param>
/// <param name="transcriptId">
/// Optional. The ID of an AssemblyAI transcript whose text replaces the first `{{ transcript }}` tag in the prompt. See [Inject a transcript by ID](https://www.assemblyai.com/docs/llm-gateway/chat-completions#inject-a-transcript-by-id) for substitution rules and edge cases.
/// </param>
/// <param name="maxTokens">
/// The maximum number of tokens to generate in the completion. Default is 1000.<br/>
/// Default Value: 1000
Expand Down Expand Up @@ -138,6 +147,7 @@ public LLMGatewayRequest(
string model,
global::System.Collections.Generic.IList<global::AssemblyAI.Message>? messages,
string? prompt,
string? transcriptId,
int? maxTokens,
double? temperature,
bool? stream,
Expand All @@ -150,6 +160,7 @@ public LLMGatewayRequest(
{
this.Messages = messages;
this.Prompt = prompt;
this.TranscriptId = transcriptId;
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.MaxTokens = maxTokens;
this.Temperature = temperature;
Expand Down
2 changes: 1 addition & 1 deletion src/libs/AssemblyAI/openapi.yaml

Large diffs are not rendered by default.