使用ChatGPT模拟一个Linux虚拟机
// 如果一只鸟走起来像鸭子、游泳起来像鸭子、叫起来也像鸭子,那么这只鸟就可以被称为鸭子。
https://www.engraved.blog/building-a-virtual-machine-inside/
// 如果一只鸟走起来像鸭子、游泳起来像鸭子、叫起来也像鸭子,那么这只鸟就可以被称为鸭子。
https://www.engraved.blog/building-a-virtual-machine-inside/
Engraved
Building A Virtual Machine inside ChatGPT
Unless you have been living under a rock, you have heard of this new ChatGPT assistant made by OpenAI. Did you know, that you can run a whole virtual machine inside of ChatGPT?
👍4
试用了一下ChatGPT,简直颠覆我的认知
下面是由ChatGPT生成的使用requests和python-telegram-bot库制作的调用ChatGPT API的Telegram Bot代码
下面是由ChatGPT生成的使用requests和python-telegram-bot库制作的调用ChatGPT API的Telegram Bot代码
import requests
from telegram.ext import Updater, MessageHandler, Filters
# Replace <TELEGRAM_BOT_API_KEY> with your own Telegram Bot API key
bot_api_key = "<TELEGRAM_BOT_API_KEY>"
# Replace <CHAT_GPT_API_KEY> with your own ChatGPT API key
chat_gpt_api_key = "<CHAT_GPT_API_KEY>"
# Set the API endpoint URL
chat_gpt_api_url = "https://api.openai.com/v1/chat/gpt2"
# Create a updater object to handle updates from Telegram
updater = Updater(bot_api_key, use_context=True)
# Get the dispatcher to register handlers
dispatcher = updater.dispatcher
def reply_to_message(update, context):
# Extract the message from the update
message = update.message
# Set the parameters for the request to the ChatGPT API
params = {
"prompt": message.text,
"model": "text-davinci-002",
"max_tokens": 256,
}
# Send the request to the ChatGPT API
response = requests.post(
chat_gpt_api_url, json=params, headers={"Authorization": f"Bearer {chat_gpt_api_key}"}
)
# Extract the generated text from the response
generated_text = response.json()["data"]["generated_text"]
# Send the generated text as reply to the message
message.reply_text(generated_text)
# Register the reply_to_message function as a handler for message events
message_handler = MessageHandler(Filters.text, reply_to_message)
dispatcher.add_handler(message_handler)
# Start the bot
updater.start_polling()
🤯10
新·世界观察日志
使用ChatGPT模拟一个Linux虚拟机 // 如果一只鸟走起来像鸭子、游泳起来像鸭子、叫起来也像鸭子,那么这只鸟就可以被称为鸭子。 https://www.engraved.blog/building-a-virtual-machine-inside/
对其中使用的语句进行了一些修改,现在可以让它模拟一个Python解释器了
I want you to act as a Python Compiler. I will type statements and you will reply with what the compiler should show. I want you to only reply with the compiler output inside one unique code block, and nothing else. Do no write explanations. Do not type statements unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first statement is print("Hello World!").
🤯1
方舟子这人让我看到了德不配位会是个什么样子。
What happened?
方舟子因为李老师(白纸革命中重要报导者)推特粉丝数超过他而多日连续炮轰李老师,并于昨日公开李老师个人信息。
方舟子因为李老师(白纸革命中重要报导者)推特粉丝数超过他而多日连续炮轰李老师,并于昨日公开李老师个人信息。
🤬21👎2
新·世界观察日志
实验性的Telegram ChatGPT Bot @wol_chatgpt_bot 仅供测试,速度略慢,不保证其可用性
我忘做conversation_id隔离了😓
Forwarded from 竹新社
联防联控机制12月7日印发《关于进一步优化落实新冠肺炎疫情防控措施的通知》宣布不再对跨地区人员流动查验核酸健康码、开展落地检。
除养老院、福利院、医疗机构、托幼机构、中小学等特殊场所外,其他场所不查验健康码、不要求提供核酸证明。
不按行政区域开展全员核酸检测。除风险岗位从业人员和高风险区人员外,其他人员改为愿检尽检。
无症状感染者和轻型病例如具备条件则采取居家隔离,也可自愿选择集中隔离收治。
不再限制购买退热、止咳、抗病毒、治感冒等非处方药物。
高风险区按楼栋、单元、楼层、住户划定;不得采取各种形式的临时封控;严禁以各种方式封堵消防通道、单元门、小区门。
(国家卫健委)
除养老院、福利院、医疗机构、托幼机构、中小学等特殊场所外,其他场所不查验健康码、不要求提供核酸证明。
不按行政区域开展全员核酸检测。除风险岗位从业人员和高风险区人员外,其他人员改为愿检尽检。
无症状感染者和轻型病例如具备条件则采取居家隔离,也可自愿选择集中隔离收治。
不再限制购买退热、止咳、抗病毒、治感冒等非处方药物。
高风险区按楼栋、单元、楼层、住户划定;不得采取各种形式的临时封控;严禁以各种方式封堵消防通道、单元门、小区门。
(国家卫健委)
《语言文字周报》发布年度热词榜
2022年“十大网络流行语”:“栓Q(我真的会谢)”“PUA(CPU/KTV/PPT/ICU)”“冤种(大冤种)”“小镇做题家”“团长/团”“退!退!退!”“嘴替”“一种很新的XX”“服了你个老六”“XX刺客”
2022年“十大网络热议语”:“冰墩墩(冬奥会)”“二十大”“中国式现代化”“人民至上,生命至上”“做核酸”“俄乌冲突”“刘畊宏女孩/王心凌男孩”“数字经济”“网课”“卡塔尔世界杯”。
2022年“十大网络流行语”:“栓Q(我真的会谢)”“PUA(CPU/KTV/PPT/ICU)”“冤种(大冤种)”“小镇做题家”“团长/团”“退!退!退!”“嘴替”“一种很新的XX”“服了你个老六”“XX刺客”
2022年“十大网络热议语”:“冰墩墩(冬奥会)”“二十大”“中国式现代化”“人民至上,生命至上”“做核酸”“俄乌冲突”“刘畊宏女孩/王心凌男孩”“数字经济”“网课”“卡塔尔世界杯”。
👎18👍1