Skip to content

Commit

Permalink
added claude fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Concedo authored and Concedo committed Jul 8, 2023
1 parent 249babf commit cb575d5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4776,6 +4776,15 @@
localsettings.saved_claude_key = custom_claude_key;
localsettings.saved_claude_addr = custom_claude_endpoint;
custom_claude_model = document.getElementById("custom_claude_model").value.trim();

if(document.getElementById("clauderenamecompat").checked)
{
localsettings.instruct_starttag = "Human:";
localsettings.chatname = "Human:";
localsettings.instruct_endtag = "Assistant:";
localsettings.chatopponent = "Assistant:";
}

selected_models = [{ "performance": 100.0, "queued": 0.0, "eta": 0, "name": custom_claude_model, "count": 1 }];
selected_workers = [];
if (perfdata == null) {
Expand Down Expand Up @@ -8301,6 +8310,8 @@
<option value="claude-instant-v1">claude-instant-v1</option>
<option value="claude-instant-v1-100k">claude-instant-v1-100k</option>
</select>
<input type="checkbox" id="clauderenamecompat" onchange="">
<div class="box-label" title="Rename User and Bot tags to work with claude">Claude Compatibility Rename Fix</div>
</div>
<div class="popupfooter">
<button type="button" class="btn btn-primary" onclick="connect_custom_endpoint()">Connect</button>
Expand Down

0 comments on commit cb575d5

Please sign in to comment.