From fd65d39062d775e8ab89c52a5f65c31797f628b2 Mon Sep 17 00:00:00 2001
From: Jan Eisenhuth <47415874+Eisenhuth@users.noreply.github.com>
Date: Wed, 3 Jul 2024 00:51:41 +0200
Subject: [PATCH] updated for apiX (#5)
* updated packager, bumped version
* minor adjustments
---
dalamud-chatgpt/ChatGPTPlugin.cs | 4 ++--
dalamud-chatgpt/ChatGPTPlugin.json | 2 +-
dalamud-chatgpt/Configuration.cs | 4 ++--
dalamud-chatgpt/dalamud-chatgpt.csproj | 4 ++--
dalamud-chatgpt/packages.lock.json | 6 +++---
5 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/dalamud-chatgpt/ChatGPTPlugin.cs b/dalamud-chatgpt/ChatGPTPlugin.cs
index 0664b43..7d35733 100644
--- a/dalamud-chatgpt/ChatGPTPlugin.cs
+++ b/dalamud-chatgpt/ChatGPTPlugin.cs
@@ -23,7 +23,7 @@ public class ChatGPTPlugin : IDalamudPlugin
private Configuration configuration;
private IChatGui chatGui;
- [PluginService] private static DalamudPluginInterface PluginInterface { get; set; } = null!;
+ [PluginService] private static IDalamudPluginInterface PluginInterface { get; set; } = null!;
[PluginService] private static ICommandManager CommandManager { get; set; } = null!;
private string configKey;
@@ -32,7 +32,7 @@ public class ChatGPTPlugin : IDalamudPlugin
private bool configAdditionalInfo;
private bool configShowPrompt;
- public ChatGPTPlugin([RequiredVersion("1.0")] DalamudPluginInterface dalamudPluginInterface, [RequiredVersion("1.0")] IChatGui chatGui, [RequiredVersion("1.0")] ICommandManager commandManager)
+ public ChatGPTPlugin(IDalamudPluginInterface dalamudPluginInterface, IChatGui chatGui, ICommandManager commandManager)
{
this.chatGui = chatGui;
diff --git a/dalamud-chatgpt/ChatGPTPlugin.json b/dalamud-chatgpt/ChatGPTPlugin.json
index e6eae85..36bffac 100644
--- a/dalamud-chatgpt/ChatGPTPlugin.json
+++ b/dalamud-chatgpt/ChatGPTPlugin.json
@@ -3,7 +3,7 @@
"Name": "ChatGPT for FFXIV",
"Description": "Lets you interact with ChatGPT through the in-game chat. Configuration requires an API key.",
"Punchline": "has science gone too far?",
- "Changelog": "- updated to Dalamud API9",
+ "Changelog": "- updated for Dalamud apiX",
"InternalName": "ChatGPTPlugin",
"Tags": ["ui", "chat", "ai"],
"RepoUrl": "https://github.com/Eisenhuth/dalamud-chatgpt"
diff --git a/dalamud-chatgpt/Configuration.cs b/dalamud-chatgpt/Configuration.cs
index 7abd948..4370bfb 100644
--- a/dalamud-chatgpt/Configuration.cs
+++ b/dalamud-chatgpt/Configuration.cs
@@ -15,9 +15,9 @@ public class Configuration : IPluginConfiguration
public const string Model = "gpt-4o";
- private DalamudPluginInterface pluginInterface;
+ private IDalamudPluginInterface pluginInterface;
- public void Initialize(DalamudPluginInterface pInterface)
+ public void Initialize(IDalamudPluginInterface pInterface)
{
pluginInterface = pInterface;
}
diff --git a/dalamud-chatgpt/dalamud-chatgpt.csproj b/dalamud-chatgpt/dalamud-chatgpt.csproj
index cebeac1..90fd218 100644
--- a/dalamud-chatgpt/dalamud-chatgpt.csproj
+++ b/dalamud-chatgpt/dalamud-chatgpt.csproj
@@ -10,7 +10,7 @@
false
$(AppData)\Eisenhuth\DalamudDevPlugins\ChatGPTPlugin\
false
- 1.1.1.0
+ 1.1.2.0
true
true
https://github.com/Eisenhuth/dalamud-chatgpt
@@ -23,7 +23,7 @@
-
+
diff --git a/dalamud-chatgpt/packages.lock.json b/dalamud-chatgpt/packages.lock.json
index 5b2d642..dcd4b2b 100644
--- a/dalamud-chatgpt/packages.lock.json
+++ b/dalamud-chatgpt/packages.lock.json
@@ -4,9 +4,9 @@
"net8.0-windows7.0": {
"DalamudPackager": {
"type": "Direct",
- "requested": "[2.1.12, )",
- "resolved": "2.1.12",
- "contentHash": "Sc0PVxvgg4NQjcI8n10/VfUQBAS4O+Fw2pZrAqBdRMbthYGeogzu5+xmIGCGmsEZ/ukMOBuAqiNiB5qA3MRalg=="
+ "requested": "[2.1.13, )",
+ "resolved": "2.1.13",
+ "contentHash": "rMN1omGe8536f4xLMvx9NwfvpAc9YFFfeXJ1t4P4PE6Gu8WCIoFliR1sh07hM+bfODmesk/dvMbji7vNI+B/pQ=="
},
"Newtonsoft.Json": {
"type": "Direct",