mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
dev: using official version of discord.net
docs: upped version to 5.1.5 dev: removed nuget.config as we no longer rely on myget dev: Fixed some build warnings
This commit is contained in:
@@ -5,5 +5,5 @@ namespace NadekoBot.Modules.Games.Common.ChatterBot;
|
||||
public class Choice
|
||||
{
|
||||
[JsonPropertyName("message")]
|
||||
public Message Message { get; init; }
|
||||
public required Message Message { get; init; }
|
||||
}
|
@@ -2,7 +2,8 @@
|
||||
|
||||
namespace NadekoBot.Modules.Games.Common.ChatterBot;
|
||||
|
||||
public class Message {
|
||||
public class Message
|
||||
{
|
||||
[JsonPropertyName("content")]
|
||||
public string Content { get; init; }
|
||||
public required string Content { get; init; }
|
||||
}
|
@@ -5,11 +5,11 @@ namespace NadekoBot.Modules.Games.Common.ChatterBot;
|
||||
public class OpenAiApiMessage
|
||||
{
|
||||
[JsonPropertyName("role")]
|
||||
public string Role { get; init; }
|
||||
public required string Role { get; init; }
|
||||
|
||||
[JsonPropertyName("content")]
|
||||
public string Content { get; init; }
|
||||
public required string Content { get; init; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; init; }
|
||||
public required string Name { get; init; }
|
||||
}
|
@@ -5,14 +5,14 @@ namespace NadekoBot.Modules.Games.Common.ChatterBot;
|
||||
public class OpenAiApiRequest
|
||||
{
|
||||
[JsonPropertyName("model")]
|
||||
public string Model { get; init; }
|
||||
public required string Model { get; init; }
|
||||
|
||||
[JsonPropertyName("messages")]
|
||||
public List<OpenAiApiMessage> Messages { get; init; }
|
||||
public required List<OpenAiApiMessage> Messages { get; init; }
|
||||
|
||||
[JsonPropertyName("temperature")]
|
||||
public int Temperature { get; init; }
|
||||
public required int Temperature { get; init; }
|
||||
|
||||
[JsonPropertyName("max_tokens")]
|
||||
public int MaxTokens { get; init; }
|
||||
public required int MaxTokens { get; init; }
|
||||
}
|
Reference in New Issue
Block a user