Skip to content

Instantly share code, notes, and snippets.

View sohaha's full-sized avatar
🏠
Working from home

Ryan sohaha

🏠
Working from home
  • GuangZhou
View GitHub Profile

nof1.ai Alpha Arena 提示词工程逆向分析

逆向工程说明: 本文档基于 nof1.ai Alpha Arena 的公开文档、交易行为模式、API 响应格式和社区讨论,系统性地逆向推导出其 System Prompt 和 User Prompt 的完整结构,欢迎各路大佬戳戳评论,一起来进行这个有趣的实验。

GitHub - nof0 Follow @wquguru

目录

"use strict";
!(function(require, directRequire) {
var a = localStorage.getItem("urlConfig");
a = a ? JSON.parse(a) : {};
const b = "https://servicewechat.com/",
c = "https://mp.weixin.qq.com/",
d = "https://open.weixin.qq.com/";
var e =
a.wechat_login ||
`${d}connect/qrconnect?appid=wxde40e023744664cb&redirect_uri=https%3a%2f%2fmp.weixin.qq.com%2fdebug%2fcgi-bin%2fwebdebugger%2fqrcode&scope=snsapi_login&state=login#wechat_redirect`,
@sohaha
sohaha / ChatGPT-Translate-Long-Text.js
Created October 4, 2023 14:54 — forked from JimLiu/ChatGPT-Translate-Long-Text.js
使用ChatGPT自动分页翻译长文
// WARNING:此脚本仅做学习和演示用途,在不了解其用途前不建议使用
// 本脚本的用途是将输入内容分页,每次提取一页内容,编辑第二条消息,发送,然后收集结果
// 使用前,需要有两条消息,参考模板 https://chat.openai.com/share/17195108-30c2-4c62-8d59-980ca645f111
// 演示视频: https://www.bilibili.com/video/BV1tp4y1c7ME/?vd_source=e71f65cbc40a72fce570b20ffcb28b22
//
(function (fullText) {
const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
const groupSentences = (fullText, maxCharecters = 2800) => {
const sentences = fullText.split("\n").filter((line) => line.trim().length > 0);
@sohaha
sohaha / demo.go
Created February 13, 2019 16:42
[自动打开浏览器] #go
func OpenBrowser(url string) error {
var err error
if !strings.HasPrefix(url, "http") {
url = "http://" + url
}
switch runtime.GOOS {
case "linux":
err = exec.Command("xdg-open", url).Start()
case "windows":