Showing posts with label 白嫖. Show all posts
Showing posts with label 白嫖. Show all posts

Thursday, 30 October 2025

🐢💻AI Codes for Free? Claude’s Doing Your Job — Literally! | AI写代码?Claude都免费送了,你还在犹豫?

Hey coders, stop fueling yourself with caffeine! Anthropic’s Claude Haiku 4.5 is now free, and it’s absurdly good — faster, smarter, and cheaper. Pair it with Skills, and suddenly AI doesn’t just chat — it codes, tests, and (yes) deploys!

🐇 1. Lightning-fast coding:

Jump on claude.ai, say “Write a Python weather scraper.”

Claude Haiku 4.5 instantly delivers clean code with its massive 200K context — perfect for big projects.

Skills work like a custom memory + toolkit: preload templates, code rules, or scripts (“Always use async,” “Add comments in Chinese”). Claude remembers, loads, and obeys.

🐱 2. Auto quality checks:

Your Skills can run linters, logic analyzers, or vulnerability scripts.

Claude finds bugs, suggests fixes, and formats your code neatly — your virtual QA buddy.

Tested safe, stable, and smarter than your 2 a.m. self. 😂

🐙 3. (Optional) Deployment magic:

Hook Claude to APIs or Sonnet: Sonnet plans, Haiku executes subtasks.

Skills can hold deploy scripts, meaning you just type:

“Claude, deploy my new version.”

Then sip bubble tea while AI handles the rest. ☁️

🌸 4. Real example:

Prompt: “Write a Python number guessing game using my Skills for quality check.”

import random  # Random module, cute as a kitten 🐱


def guess_number():

    num = random.randint(1, 10)

    guess = int(input("Guess a number between 1–10! 😊"))

    if guess == num:

        print("Yay, jackpot! 🎉")

    else:

        print("Oops! It was", num, "Try again~ 😜")


# Skills check: Syntax OK, randomness fine, input safe. 👍

guess_number()

Runs flawlessly with a quality report — adorable and powerful!

🧠 Bottom line:

Claude Haiku 4.5 + Skills = AI that codes while you nap.

You’re not lazy — you’re just managing smarter.


嘿,各位被代码折磨到怀疑人生的程序猿们,是时候放下咖啡,拥抱AI啦!Anthropic 最近放大招——Claude Haiku 4.5 免费开放!

这家伙小而快,聪明得离谱。配合新出的 Skills 功能,简直像给AI装上了外挂:它能写代码、自动查错、甚至帮你部署项目(没骗你,真能干!)。

🐇 一、写代码快到飞起!

打开 claude.ai 官网,输入一句:“用Python写个天气爬虫”。

Claude Haiku 4.5 一秒吐出干净优雅的代码。

它拥有 200K上下文窗口,能同时理解整个项目结构,不怕大代码。

而 Skills 呢?就是 Claude 的“私人记事本+工具箱”🧰。

你可以上传自定义指令,比如“保持代码PEP8规范”“用中文注释”,

Claude 会自动加载这些技能,像个忠诚小助手,永远记得你的小癖好。

🐱 二、自动化质量检查,像AI在你肩膀上拍肩膀:

你可以让 Claude 的 Skills 执行自定义的检测脚本,比如:

  • 语法与逻辑扫描

  • 代码风格统一

  • 安全漏洞检测

    结果?Claude像个温柔的QA工程师,指出你的小失误,还顺带修好。

    Red Team实测:比你凌晨2点的状态可靠100倍。😂

🐙 三、(可选)部署支持:

如果你接入Claude API,它能与Sonnet协作——Sonnet规划、Haiku执行。

比如自动重构文件、并行处理任务、打包部署。

Skills还能设置为“命令集”,让Claude直接调用shell脚本或云部署脚本。

一句话:“Claude,发布我新版本。”

然后你去喝奶茶,代码自己上线了☁️。

🌸 四、实际例子:

输入:

用Python写个猜数字游戏,并用我的Skills模板检查代码质量。

Claude瞬间输出👇:

import random  # 可爱随机模块🐱


def guess_number():

    num = random.randint(1, 10)

    guess = int(input("猜一个1-10的数字吧!😊"))

    if guess == num:

        print("中奖了!🎉")

    else:

        print(f"哎呀,答案是 {num},下次加油哦~ 😜")


# Skills检查:语法正确,随机性良好,无输入漏洞。👍

guess_number()

运行完美,还附带自动质量报告,简直萌化你心。

🧠 总结:

Claude Haiku 4.5 + Skills = 从键盘苦工变项目导演。

免费又聪明,不用配置环境,不用写长prompt。

只要一句话,AI自己干完。

别再手敲代码啦,让Claude敲,你敲键盘只是浪费电。⚡


Tuesday, 25 February 2025

微信AI聊天机器人超进化:DeepSeek 接入指南,小白也能轻松搞定

告别无聊尬聊,微信秒变智能助手,DeepSeek 带你飞!- Say goodbye to boring chats, WeChat turns into a smart assistant in seconds, DeepSeek takes you to fly!



要将DeepSeek接入到chatgpt-on-wechat项目中,需要遵循以下步骤:

使用DeepSeek API Key的方法

1. 获取DeepSeek API Key

首先,您需要获取DeepSeek的API密钥:

  1. 访问DeepSeek官方网站或者使用免费的OpenRouter官网调用Deepseek API. 

  2. 注册并登录您的账户

  3. 在API密钥部分创建一个新的API密钥

  4. 复制并安全保存生成的API密钥

2. 配置chatgpt-on-wechat项目

  1. 克隆chatgpt-on-wechat项目到本地:

git clone https://github.com/zhayujie/chatgpt-on-wechat.git

cd chatgpt-on-wechat

  1. 安装必要的依赖:

pip3 install -r requirements.txt

  1. 安装扩展依赖(图片,声音等)

pip3 install -r requirements-optional.txt

  1. 在项目根目录下创建或编辑配置文件 config.json,添加DeepSeek的配置,,并确保 Python 版本 >= 3.8, 具体请参考官网设置说明:

{

   "channel_type": "wx",

   "model": "deepseek-chat",

   "open_ai_api_key": "YOUR_DEEPSEEK_API_KEY",

   "proxy": "",

   "api_base_url": "https://api.deepseek.com/v1" 或者  “https://openrouter.ai/api/v1/chat/completions”

"single_chat_prefix": ["bot"],

   "group_chat_prefix": ["@bot"],

   "wechat_prefix": ["@bot"]

}

3. 运行项目

执行以下命令启动项目:

python app.py


然后用微信扫码登录,成功后你的微信账号就可以和 Deepseek API 进行对话,首次登录需在手机端确认。

使用本地Ollama运行DeepSeek的方法

1. 安装Ollama

  1. 访问 Ollama 官网并下载适合您操作系统的版本

  2. 安装 Ollama, 在官方Github上有多种安装方式

2. 下载并运行DeepSeek模型

  1. 打开终端,运行以下命令下载DeepSeek模型:
    ollama pull deepseek-coder-v2 → 你自己选需要的模型,这只是例子。

  2. 启动DeepSeek模型:

ollama run deepseek-coder-v2
默认监听 http://localhost:11434,你可以用 curl 测试:

curl http://localhost:11434/api/generate -d '{

  "model": "deepseek-coder-v2",

  "prompt": "你好!",

  "stream": false

}'

如果返回 "response": {应该是某种问候},说明 API 服务正常。

3. 配置chatgpt-on-wechat项目

  1. 克隆并安装依赖(如前面所述)

  2. 修改 config.json 文件, 具体请参考官网设置说明:

{

   "channel_type": "wx",

   "model": "deepseek-chat",

   "open_ai_api_key": "ollama",

"proxy": "",

   "api_base_url": "http://localhost:11434",

"single_chat_prefix": ["bot"],

   "group_chat_prefix": ["@bot"],

   "wechat_prefix": ["@bot"]

}

  1. 需要本地repository添加新Ollama机器人(bot/ollama_bot.py):

async def reply(self, query, context):

    response = requests.post(

        f"{self.ollama_base_url}/api/chat",

        json={

            "model": self.model,

            "messages": [{"role": "user", "content": query}]

        }

    )

return response.json()['message']['content']

4. 运行项目

执行以下命令启动项目:

OLLAMA_HOST=0.0.0.0 python3 app.py


然后用微信扫码登录,你的微信账号就可以通过本地 Ollama 调用 Deepseek 进行聊天,首次登录需在手机端确认。

请确保仔细阅读chatgpt-on-wechat项目的文档,并在必要时参考DeepSeek和Ollama的官方文档以获取更详细的信息。