forked from EllieBotDevs/elliebot
18 lines
No EOL
488 B
C#
18 lines
No EOL
488 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace EllieBot.Modules.Games.Common.ChatterBot;
|
|
|
|
public class OpenAiApiRequest
|
|
{
|
|
[JsonPropertyName("model")]
|
|
public required string Model { get; init; }
|
|
|
|
[JsonPropertyName("messages")]
|
|
public required List<OpenAiApiMessage> Messages { get; init; }
|
|
|
|
[JsonPropertyName("temperature")]
|
|
public required int Temperature { get; init; }
|
|
|
|
[JsonPropertyName("max_tokens")]
|
|
public required int MaxTokens { get; init; }
|
|
} |