Skip to content

Commit

Permalink
Replaced promptsURL in actAs(persona) w/ jsDelivr one
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Jan 7, 2025
1 parent 5af9997 commit 8fa3932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const chatgpt = {
actAs(persona) {
// Prompts ChatGPT to act as a persona from https://github.com/KudoAI/chat-prompts/blob/main/personas.json

const promptsUrl = 'https://raw.githubusercontent.com/KudoAI/chat-prompts/main/dist/personas.min.json';
const promptsUrl = 'https://cdn.jsdelivr.net/gh/KudoAI/chat-prompts/dist/personas.min.json';
return new Promise((resolve, reject) => {
const xhr = new XMLHttpRequest();
xhr.open('GET', promptsUrl, true); xhr.send();
Expand Down

0 comments on commit 8fa3932

Please sign in to comment.