Skip to content

Commit

Permalink
updated for apiX (#5)
Browse files Browse the repository at this point in the history
* updated packager, bumped version

* minor adjustments
  • Loading branch information
Eisenhuth authored Jul 2, 2024
1 parent e3ffaef commit fd65d39
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dalamud-chatgpt/ChatGPTPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion dalamud-chatgpt/ChatGPTPlugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions dalamud-chatgpt/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions dalamud-chatgpt/dalamud-chatgpt.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>$(AppData)\Eisenhuth\DalamudDevPlugins\ChatGPTPlugin\</OutputPath>
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
<AssemblyVersion>1.1.1.0</AssemblyVersion>
<AssemblyVersion>1.1.2.0</AssemblyVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<PackageProjectUrl>https://github.com/Eisenhuth/dalamud-chatgpt</PackageProjectUrl>
Expand All @@ -23,7 +23,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DalamudPackager" Version="2.1.12" />
<PackageReference Include="DalamudPackager" Version="2.1.13" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
</ItemGroup>

Expand Down
6 changes: 3 additions & 3 deletions dalamud-chatgpt/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fd65d39

Please sign in to comment.