mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-11-23 20:10:21 +00:00
26 lines
810 B
C#
26 lines
810 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
using AIStudio.Provider.OpenAI;
|
|
|
|
namespace AIStudio.Provider.Anthropic;
|
|
|
|
/// <summary>
|
|
/// The Anthropic chat request model.
|
|
/// </summary>
|
|
/// <param name="Model">Which model to use for chat completion.</param>
|
|
/// <param name="Messages">The chat messages.</param>
|
|
/// <param name="MaxTokens">The maximum number of tokens to generate.</param>
|
|
/// <param name="Stream">Whether to stream the chat completion.</param>
|
|
/// <param name="System">The system prompt for the chat completion.</param>
|
|
public readonly record struct ChatRequest(
|
|
string Model,
|
|
IList<Message> Messages,
|
|
int MaxTokens,
|
|
bool Stream,
|
|
string System
|
|
)
|
|
{
|
|
|
|
[JsonExtensionData]
|
|
public IDictionary<string, object> AdditionalApiParameters { get; init; }
|
|
} |