https://github.com/MoonshotAI/Kimi-K2
ntent="t" yb-mpa-mark="mark-style-text" style="color:#222222;font-size:14px;line-height:26px;word-break:break-word">1.安装Claude Code(喂饭级教程)
ntent="t" yb-mpa-mark="mark-style-text" style="color:#222222;font-size:14px;line-height:26px;word-break:break-word">2.Kimi-K2接入Claude Code(喂饭级教程)
ntent="t" yb-mpa-mark="mark-style-text" style="color:#222222;font-size:14px;line-height:26px;word-break:break-word">3.K2接入Claude Code效果实测
https://github.com/LLM-Red-Team/kimi-cc
ntent="t" style="color:rgb(136, 136, 136);font-size:14px;letter-spacing:1px">Claude Code本身并不支持直接使用其他模型的API,它默认只能使用 Anthropic自家的模型(Claude)。
ntent="t" style="color:rgb(136, 136, 136);font-size:14px;letter-spacing:1px"> 不过,kimi-cc这个项目,可以通过拦截并转换API请求的方式,让Claude Code能够 使用Kimi的API,使其误认为正在与原生模型交互
ntent="t" yb-mpa-mark="mark-style-text" style="color:#222222;font-size:14px;line-height:26px;word-break:break-word">Claude Code是由Anthropic开发的一款智能编程工具,它以命令行工具的形式存在,能够集成到开发者的终端环境中。
ntent="t" yb-mpa-mark="mark-style-text" style="color:#222222;font-size:14px;line-height:26px;word-break:break-word">它基于Anthropic的Constitutional AI框架构建,可以以自然语言交互的方式帮助开发者更高效地完成编程任务。
ntent="t" yb-mpa-mark="mark-style-text" style="color:#222222;font-size:14px;line-height:26px;word-break:break-word">我觉得它其实就是一个Agent,还可以接入MCP工具,以及帮你操作底层系统等等,是目前最强的Agent工具了
https://nodejs.org/en/download/current
ntent="t" style="color:rgb(136, 136, 136);font-size:14px;letter-spacing:1px">主要是我Windows电脑这两天坏了,,还没来得及修。
ntent="t" style="color:rgb(136, 136, 136);font-size:14px;letter-spacing:1px"> 不过据说claude code现在已经支持Windows了
https://docs.anthropic.com/zh-CN/docs/claude-code/overview
https://platform.moonshot.cn/console/api-keys
apikey命名为Claude Code(方便统计用途)
执行后,中途会提示需要粘贴kimi的apikey,粘贴 回车即可
看到下面的日志,表示成功~
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">prompt:帮我开发一个可爱风格的猫舍网站,页面精美,每只猫要能找到血缘关系(父母,兄弟姐妹啥的)
>/ Case2. 国际奥数题
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">记 Q 是所有有理数的集合,一个函数 f : Q → Q 称为神奇函数,如果对任意 x, y ∈ Q 均有下述两个等式:
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">f(x + f(y)) = f(x) + y 与 f(f(x) + y) = x + f(y)
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">至少有一个成立。
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">证明:存在整数 c满足对任意一个神奇函数 f,至多存在 c 个两两不同的有理数可以表示为 f(r) + f(-r) 的形式 (r ∈ Q),并求满足上述要求的最小整数 c 。
ntent="t">这道题正确答案是2
ntent="t">但是我跑了好多次它要不得出答案是1要不是3,,,
ntent="t">Claude4也做不对,得到的答案是3
ntent="t">随即我又换了一道简单一些的 推理题(如下)
ntent="t">这道题答案是4
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">五对夫妇握手问题:五对夫妇举行家庭聚会,每一个人都可能和其他人握手,但夫妇之间绝对不握手。聚会结束时,A先生提问大家握手几次,结果是每个人的握手次数不相同。问A先生的太太握手几次?
ntent="t" style="font-size:16px">这道题它对了,但是有时候会用英文回答。
ntent="t">我另外还测试好几道数学题,但是奥数题都不对
ntent="t">我感觉数学能力是有提升,但没有那种突破性的进步。
>/ Case3. 大鱼吃小鱼游戏
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">prompt:
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">请为我开发一个简单但有趣的"大鱼吃小鱼"HTML5网页游戏,具有以下功能:
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">游戏核心:
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 玩家控制一条可以不断成长的鱼
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 通过吃比自己小的鱼来增长体积
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 避开比自己大的鱼,否则会被吃掉
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 随着分数增加,游戏难度逐渐提高
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">视觉设计:
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 海洋背景,蓝色渐变水效果
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 多样化的鱼类设计,不同大小、颜色和游动方式
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 简洁但美观的UI,显示当前分数和生命值
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">交互设计:
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 电脑:使用方向键或WASD控制鱼的移动
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 移动设备:触摸屏幕拖动控制
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 简单的开始界面和游戏结束界面
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">额外功能:
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 计分系统和最高分记录
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 简单的音效
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 特殊鱼类(如获得加速、临时无敌等效果)
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">- 可选的难度等级
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">请生成完整的HTML、CSS和Javascript代码,确保代码可直接在浏览器运行,无需额外依赖。
最终生成效果如下:
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">prompt:帮我生成一个网页版我的世界
ntent="t" style="color:#FFD89F;font-size:14px;line-height:20px;word-break:break-word">prompt:你再帮我看一下我的世界网页版,并不能走动,也不能跳跃。而且应该还有一些别的问题,你好好思考,重新检查一下,都给我优化好