I created a dedicated HTTP API for official ChatGPT API, its using POST so it can handle long prompts and it supports setting all OpenAI properties
axios({
method: 'post',
url: 'https://chatgpt.pawan.krd/ask',
headers: {
XZ Backdoor symbol deobfuscation. Updated as i make progress |
albumEventHandler = async (event: AlbumEvent) => { | |
const messages = event.messages; | |
const chat = (await messages[0].getChat()) as Api.Channel; | |
const chatId = messages[0].chatId.toString(); | |
const noForwards = chat.noforwards; | |
await this.sendAlbumToForwardChannel(messages, chatId, noForwards); | |
}; | |
sendAlbumToForwardChannel = async ( | |
messages: Api.Message[], |
@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).
Here we go with the explanations:
(function(x, f = () => x) {