Comments (3)
A current solution is to type this into the console:
(async () => {
const request = await fetch("https://sharegpt.com/api/conversations", {
body: JSON.stringify({
avatarUrl: "",
items: [...document.querySelectorAll('div.text-base.gap-4.m-auto.p-4.flex > div:nth-child(2)')].slice(0, -1).map((node) => {
const role = node.querySelector('div:first-child > button:first-child').textContent;
return {
from: "gpt",
value: `<p><b>${role}</b></p>${node.childNodes[1].innerHTML}`,
}
}),
}),
headers: {
"Content-Type": "application/json",
},
method: "POST",
});
const response = await request.json();
const { id } = response;
const url = `https://shareg.pt/${id}`;
console.log(url);
})();
Example: https://sharegpt.com/c/7b0vjJg
Besides, we always use from: "gpt"
because from: "human"
does not support HTML.
from betterchatgpt.
We can add a "Post on ShareGPT" button
Besides, we need to add a warning when the user click the button: "Please be aware that by posting your conversation on ShareGPT, it will become publicly accessible and viewable to anyone. Once posted, the conversation cannot be hidden or deleted, and may be archived or shared by others. We advise you to consider carefully before sharing sensitive or private information on this platform."
from betterchatgpt.
This is not yet possible as ShareGPT does not support the "system" role
from betterchatgpt.
Related Issues (20)
- Button to refresh chat tokens HOT 5
- Package web error HOT 2
- Suggestion: Add other AI models HOT 2
- Change IP HOT 1
- Is this project dead? HOT 8
- Failed to fetch
- Not working with custom api provider
- 请问如何在聊天对话框中输入制表符?
- Text selection does not work
- Support for other api-versions for Azrue openai HOT 3
- Conversations got deleted
- [Feature Request]Updated Models! HOT 11
- 04-09 preview option
- Is it possible to add your own model name to bettergpt.chat? HOT 1
- How to change the version of ChatGPT? HOT 2
- betterChatgpt flood of gibberish followed by Quota exceeded error.
- [Feature Request] Chinese language support
- api key 失效 HOT 1
- Failed to fetch
- It is saying failed to fetch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from betterchatgpt.