首页 > 系统相关 >claude-engineer 匹配Windows系统

claude-engineer 匹配Windows系统

时间:2024-08-03 21:51:02浏览次数:9  
标签:claude ollama content Windows snake file path type engineer

claude-engineer

依赖
Tavily AI
https://app.tavily.com/home
Ollama
https://ollama.com

下载
git clone https://github.com/Doriandarko/claude-engineer.git

匹配:有OLLAMA_HOST环境变量时的API的http地址

问题:当有环境变量OLLAMA_HOST=0.0.0.0,这时候需要明确指定ollama的http网址(否则使用的是0.0.0.0:11434)
方案:明确指定ollama的http地址。

代码(py)
# client = ollama.AsyncClient() # 源代码 client = ollama.AsyncClient('http://127.0.0.1:11434')

匹配:默认创建的路径是linux系统路径,现在要修改成windows系统路径
方案:通过修改提示词,增加项目根目录的指定。

代码(py)
1. create_folder: Create new directories in the project structure, root directory is "D:\\snake\\". 2. create_file: Generate new files with specified content. Strive to make the file as complete and useful as possible, root directory is "D:\\snake\\".

tools = [ { "type": "function", "function": { "name": "create_folder", "description": "Create a new folder at the specified path on Windows system with root directory D:\\snake\\", "parameters": { "type": "object", "properties": { "path": { "type": "string", "description": "The absolute or relative path where the folder should be created" } }, "required": ["path"] } } }, { "type": "function", "function": { "name": "create_file", "description": "Create a new file at the specified path with the given content on Windows system with root directory D:\\snake\\", "parameters": { "type": "object", "properties": { "path": { "type": "string", "description": "The absolute or relative path where the file should be created" }, "content": { "type": "string", "description": "The content of the file" } }, "required": ["path", "content"] } } }, ]

提示词
write snake game with python.

ollama的关键限制
没有找到合适的本地模型(小于33B),能正确的创建项目文件,运行代码、并使用tavily。

标签:claude,ollama,content,Windows,snake,file,path,type,engineer
From: https://www.cnblogs.com/epicblue/p/18341159

相关文章

  • Windows令牌窃取提权和烂土豆提权学习
    令牌,又叫token,是系统临时产生的秘钥,相当于账号密码,用来决定是否允许此次请求和判断此次请求是属于哪一个用户。令牌无需提供密码或其他凭证,就可以访问网络和系统资源,这些令牌持续于系统中,除非系统重新启动。令牌的最大特点就是随机性,不可预测,无法猜解。当不同的用户登录计算机......
  • 计算机基础(Windows 10+Office 2016)教程 —— 第7章 演示文稿软件PowerPoint 2016
    第7章演示文稿软件PowerPoint20167.1PowerPoint2016入门7.1.1PowerPoint2016简介7.1.2PowerPoint2016的操作界面组成7.1.3PowerPoint2016的窗口视图方式7.1.4PowerPoint2016的演示文稿及其操作7.1.5PowerPoint2016的幻灯片及其操作7.2演示文稿的编......
  • 计算机基础(Windows 10+Office 2016)教程 —— 第8章 多媒体技术及应用
    多媒体技术及应用8.1多媒体技术的概述8.1.1多媒体技术的定义和特点8.1.2多媒体的关键技术8.1.3多媒体技术的发展趋势8.1.4多媒体文件格式的转换8.1.5多媒体技术的应用8.2多媒体计算机系统的构成8.2.1多媒体计算机系统的硬件系统8.2.2多媒体计算机系统的软......
  • 跟《经济学人》学英文:2024年08月03日这期 GPT, Claude, Llama? How to tell which AI
    GPT,Claude,Llama?HowtotellwhichAImodelisbestBewaremodel-makersmarkingtheirownhomework原文:WhenMeta,theparentcompanyofFacebook,announceditslatestopen-sourcelargelanguagemodel(LLM)onJuly23rd,itclaimedthatthemostpo......
  • 在Windows 11上导入shout模块时缺少dll错误
    经过大量研究,我终于在Windows11上安装了python-shout没有使用msys2/mingw。安装模块的setup.py文件是:#distutilsbuildscript#Toinstallshout-python,run'pythonsetup.pyinstall'fromsetuptoolsimportsetup,Extensionimportosimportsysimpo......
  • Windows不支持用USB连接多部手机
    上下文一开始我以为是我的USB坏了,但我发现换数据线也不好解决。我感觉每次好像在我连接两部手机后就会出问题。然后我又发现驱动名称叫libusbk,经过一番搜索后,我在隔壁libusb发现问题所在。解释Windows的WinUSB不支持连接多部手机。连接多部手机后会导致无法再连接手机。消息来......
  • Windows不支持用USB连接多部手机
    上下文一开始我以为是我的USB坏了,但我发现换数据线也不好解决。我感觉每次好像在我连接两部手机后就会出问题。然后我又发现驱动名称叫libusbk,经过一番搜索后,我在隔壁libusb发现问题所在。解释Windows的WinUSB不支持连接多部手机。连接多部手机后会导致无法再连接手机。消息来......
  • Windows不支持用USB连接多部手机
    上下文一开始我以为是我的USB坏了,但我发现换数据线也不好解决。我感觉每次好像在我连接两部手机后就会出问题。然后我又发现驱动名称叫libusbk,经过一番搜索后,我在隔壁libusb发现问题所在。解释Windows的WinUSB不支持连接多部手机。连接多部手机后会导致无法再连接手机。消息来......
  • caffe编译和基本使用(Windows + CPU)
    xqspace0.摘要本文主要完成以下几点:caffe默认支持是vs2013/vs2015+python2.7/python3.5,使用其他版本会比较麻烦,这里使用的是vs2015和python3.5;完成caffe在windows上的编译(cpu版);提供caffe的python接口;caffe的基本使用方法(这里是推荐几篇讲的比较详细的入门博文);......
  • 【Linux或者Windows中相关网络工具使用介绍】nc、ping、ifconfig、ipaddr、tcpdump、l
    在实际的网络排错、运维诊断、或者是开发过程中,熟练运用Linux或者Windows当中的有关网络工具,能够助力我们更迅速更精准地定位故障。因而,今天给大家分享几款必掌握的网络利器。1.nc命令在Linux中,nc命令即netcat命令,它被称为网络工具中的“瑞士军刀”,是一个功能强大的......