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:
Kwoth
2024-08-01 02:36:49 +00:00
parent 0df3c1a4a1
commit 2c3ada4710
9 changed files with 110 additions and 55 deletions

View File

@@ -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; }
}

View File

@@ -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; }
}

View File

@@ -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; }
}

View File

@@ -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; }
}