add: Added support for any openai compatible api for the chatterbot feature

change: Changed games.yml to allow input of the apiUrl (needs to be openai compatible) and modelName as a string.
This commit is contained in:
Kwoth
2024-07-13 15:26:00 +00:00
parent ae1ddd82d0
commit db66264bc6
15 changed files with 260 additions and 170 deletions

View File

@@ -0,0 +1,15 @@
using System.Text.Json.Serialization;
namespace NadekoBot.Modules.Games.Common.ChatterBot;
public class OpenAiApiMessage
{
[JsonPropertyName("role")]
public string Role { get; init; }
[JsonPropertyName("content")]
public string Content { get; init; }
[JsonPropertyName("name")]
public string Name { get; init; }
}