Skip to content

Commit

Permalink
regexing
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisenhuth committed May 14, 2024
1 parent fe62d9f commit e3ffaef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dalamud-chatgpt/ChatGPTPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private async Task SendPrompt(string input)

const string systemPrompt = "You are interacting through the in-game chat of the MMORPG Final Fantasy XIV, as such your responses can only be displayed as simple text without any markup.";


input = Regex.Replace(input, @"(\\[^\n]|""|')", "");
var requestBody = "{" +
$"\"model\": \"{Configuration.Model}\"," +
"\"messages\":" +
Expand Down
2 changes: 1 addition & 1 deletion 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.0.0</AssemblyVersion>
<AssemblyVersion>1.1.1.0</AssemblyVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<PackageProjectUrl>https://github.com/Eisenhuth/dalamud-chatgpt</PackageProjectUrl>
Expand Down

0 comments on commit e3ffaef

Please sign in to comment.