Skip to content

Commit

Permalink
quick adjustment deleting every ` from prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
clusterzx committed Jan 13, 2025
1 parent f37cb6f commit b3d348d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ document.addEventListener('DOMContentLoaded', (event) => {
try {

const formData = new FormData(setupForm);
//remove from formData.systemPrompt all ` chars
formData.set('systemPrompt', formData.get('systemPrompt').replace(/`/g, ''));
const response = await fetch('/settings', {
method: 'POST',
headers: {
Expand Down

0 comments on commit b3d348d

Please sign in to comment.