当前位置: 首页 > news >正文

网站的建设的公司出名潘家园网站建设

网站的建设的公司出名,潘家园网站建设,如何在企业版社保网站做增员,房地产迎来4个好消息不惧怕任何环境配置 首先 clone 项目#xff0c;然后查看开发者文档#xff1a;https://github.com/OpenDevin/OpenDevin/blob/main/Development.md make setup-config 自定义 LLM 配置 首先这个 devin 写的是支持自定义的 LLM 配置#xff0c;并且提供了交互式命令供我们… 不惧怕任何环境配置 首先 clone 项目然后查看开发者文档https://github.com/OpenDevin/OpenDevin/blob/main/Development.md make setup-config 自定义 LLM 配置 首先这个 devin 写的是支持自定义的 LLM 配置并且提供了交互式命令供我们选择直接在项目根目录下 make setup-config ➜ OpenDevin git:(main) make setup-configSetting up config.toml... make[1]: 进入目录“/home/zhangzhe/LLM/OpenDevin” Enter your workspace directory (as absolute path) [default: ./workspace]: Do you want to persist the sandbox container? [true/false] [default: true]: Enter a password for the sandbox container: zhangzhe2023 Enter your LLM model name, used for running without UI. Set the model in the UI after you start the app. (see https://docs.litellm.ai/docs/providers for full list) [default: gpt-4o]: qwen72b Enter your LLM api key: EMPTY Enter your LLM base URL [mostly used for local LLMs, leave blank if not needed - example: http://localhost:5001/v1/]: http://215.49:8000/v1 Enter your LLM Embedding Model Choices are:- openai- azureopenai- Embeddings available only with OllamaEmbedding:- llama2- mxbai-embed-large- nomic-embed-text- all-minilm- stable-code- Leave blank to default to BAAI/bge-small-en-v1.5 via huggingfaceopenai make[1]: 离开目录“/home/zhangzhe/LLM/OpenDevin” Config.toml setup completed.但是我这样配置了好像没有生效哦 make build 这里面干的东西比较多配置 python前端的 node_modules 下载也是遇到了不少坑。先粗略放一个日志感受一下。 ➜ OpenDevin git:(main) make buildBuilding project... Checking dependencies... Checking system... Linux detected. Checking Python installation... Python 3.11.9 is already installed. Checking npm installation... npm 10.5.2 is already installed. Checking Node.js installation... Node.js 20.13.1 is already installed. Checking Docker installation... Docker version 24.0.5, build 24.0.5-0ubuntu1~20.04.1 is already installed. Checking Poetry installation... Poetry (version 1.8.3) is already installed. Dependencies checked successfully. Pulling Docker image... Using default tag: latest latest: Pulling from opendevin/sandbox 3c645031de29: Downloading 15.76MB/29.53MB 8429b0886fe2: Downloading 25.36MB/184.7MB 05a8e69e51e3: Download complete 78a1e71658b2: Download complete - Installing retry (0.9.2)- Installing ruff (0.4.8)- Installing seaborn (0.13.2)- Installing streamlit (1.35.0)- Installing swebench (1.1.5 7b0c4b1)- Installing termcolor (2.4.0)- Installing types-toml (0.10.8.20240310)- Installing whatthepatch (1.0.5)Installing the current project: opendevin (0.1.0) Running playwright install --with-deps chromium... Installing dependencies... Switching to root user to install dependencies... [sudo] 的密码 命中:1 https://mirrors.aliyun.com/kubernetes/apt kubernetes-xenial InRelease 忽略:2 https://download.docker.com/linux/ubuntu foc这 node 又出问题 主要是报错有一个包安装不成功这个时候我就知道要使用官方源了。 ➜ frontend git:(main) npm config list ; user config from /home/zhangzhe/.npmrcregistry https://registry.npm.taobao.org/ ; project config from /home/zhangzhe/LLM/OpenDevin/frontend/.npmrcenable-pre-post-scripts true public-hoist-pattern [*nextui-org/*] ; node bin location /usr/bin/node ; node version v20.13.1 ; npm local prefix /home/zhangzhe/LLM/OpenDevin/frontend ; npm version 10.5.2 ; cwd /home/zhangzhe/LLM/OpenDevin/frontend ; HOME /home/zhangzhe ; Run npm config ls -l to show all defaults.我换成官方的源之后然后再开代理就好了 先设置.npmrc public-hoist-pattern[]*nextui-org/* enable-pre-post-scriptstrue registryhttps://registry.npmjs.org然后 ➜ frontend git:(main) export https_proxyhttp://127.0.0.1:7890 ➜ frontend git:(main) ✗ npm install opendevin-frontend0.1.0 preparecd .. husky frontend/.huskychanged 1268 packages, and audited 1233 packages in 24s281 packages are looking for fundingrun npm fund for detailsfound 0 vulnerabilitiesdevin 安装成功 ➜ OpenDevin git:(main) make buildBuilding project... Checking dependencies... Checking system... Linux detected. Checking Python installation... Python 3.11.9 is already installed. Checking npm installation... npm 10.5.2 is already installed. Checking Node.js installation... Node.js 20.13.1 is already installed. Checking Docker installation... Docker version 24.0.5, build 24.0.5-0ubuntu1~20.04.1 is already installed. Checking Poetry installation... Poetry (version 1.8.3) is already installed. Dependencies checked successfully. Pulling Docker image... Using default tag: latest latest: Pulling from opendevin/sandbox Digest: sha256:4bd05c581692e26a448bbc6771a21bb27002cb0e6bcf5034d0db91bb8704d0f0 Status: Image is up to date for ghcr.io/opendevin/sandbox:latest ghcr.io/opendevin/sandbox:latest Docker image pulled successfully. Installing Python dependencies... Using virtualenv: /home/zhangzhe/.cache/pypoetry/virtualenvs/opendevin-ypH5SPK--py3.11 Installing dependencies from lock fileNo dependencies to install or updateInstalling the current project: opendevin (0.1.0) Setup already done. Skipping playwright installation. Python dependencies installed successfully. Setting up frontend environment... Detect Node.js version... Current Node.js version is 20.13.1, corepack is supported. Installing frontend dependencies with npm... opendevin-frontend0.1.0 preparecd .. husky frontend/.huskyup to date, audited 1233 packages in 3s281 packages are looking for fundingrun npm fund for detailsfound 0 vulnerabilities Running make-i18n with npm... opendevin-frontend0.1.0 make-i18nnode scripts/make-i18n-translations.cjsFrontend dependencies installed successfully. Installing pre-commit hooks... pre-commit installed at .git/hooks/pre-commit Pre-commit hooks installed successfully. Building frontend... opendevin-frontend0.1.0 buildtsc vite buildvite v5.3.1 building for production... ✓ 3009 modules transformed. dist/index.html 1.95 kB │ gzip: 0.91 kB dist/assets/index-E7G9J2Py.css 221.98 kB │ gzip: 25.99 kB dist/assets/web-vitals-DdRmOIVa.js 5.49 kB │ gzip: 2.05 kB dist/assets/index-BsOxiPz-.js 2,860.40 kB │ gzip: 916.76 kB(!) Some chunks are larger than 500 kB after minification. Consider: - Using dynamic import() to code-split the application - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. ✓ built in 13.87s Build completed successfully.make run 运行 这里也是遇到了好几个坑。 ERROR:root:class ‘RuntimeError’: Your system has an unsupported version of sqlite3. Chroma requires sqlite3 3.35.0. 最主要的还是这个。这里要升级 sqlite3 的版本同时完成对应 python drvier 库的替换。 ➜ OpenDevin git:(main) ✗ make runRunning the app... Starting backend server... Waiting for the backend to start... Backend started successfully. Starting frontend with npm... opendevin-frontend0.1.0 startnpm run make-i18n vite --port 3001 opendevin-frontend0.1.0 make-i18nnode scripts/make-i18n-translations.cjsVITE v5.3.1 ready in 4159 ms➜ Local: http://localhost:3001/➜ Network: use --host to expose➜ press h enter to show help ERROR:root: File /home/zhangzhe/LLM/OpenDevin/agenthub/monologue_agent/agent.py, line 29, in modulefrom opendevin.memory.condenser import MemoryCondenserFile /home/zhangzhe/LLM/OpenDevin/opendevin/memory/__init__.py, line 3, in modulefrom .memory import LongTermMemoryFile /home/zhangzhe/LLM/OpenDevin/opendevin/memory/memory.py, line 3, in moduleimport chromadbFile /home/zhangzhe/.cache/pypoetry/virtualenvs/opendevin-ypH5SPK--py3.11/lib/python3.11/site-packages/chromadb/__init__.py, line 83, in moduleraise RuntimeError(ERROR:root:class RuntimeError: Your system has an unsupported version of sqlite3. Chroma requires sqlite3 3.35.0. Please visit https://docs.trychroma.com/troubleshooting#sqlite to learn how to upgrade.那我就手动升级 sqlite3 版本到最新 草还得手动编译 sqlite3升级版本 原来包都给我安装到这里了啊 File /home/zhangzhe/.cache/pypoetry/virtualenvs/opendevin-ypH5SPK--py3.11/lib/python3.11/site-packages/chromadb/__init__.py, line 79, in modulehttps://stackoverflow.com/questions/64861331/how-can-i-install-or-upgrade-to-sqlite-3-33-0-on-ubuntu-18-04 上面这个教程无敌了。 升级完还不行还得替换 Python 标准库中的 sqlite3 模块实现用 pysqlite3 模块取而代之。 按照这个老哥的提示。 https://gist.github.com/defulmere/8b9695e415a44271061cc8e272f3c300?permalink_comment_id4650539#gistcomment-4650539 这段代码的作用在于替换 Python 标准库中的 sqlite3 模块实现用 pysqlite3 模块取而代之。下面是对这段代码的逐行解析 import(pysqlite3): 这行代码动态地导入了 pysqlite3 模块。import 是 Python 的一个内置函数用于低级别的模块导入。这里直接通过字符串形式指定了要导入的模块名。导入后pysqlite3 模块会被添加到 sys.modules 字典中该字典存储了所有已导入模块的引用。import sys: 导入 Python 的系统模块 sys这个模块提供了访问和控制 Python 解释器的一些变量和函数。sys.modules[sqlite3] sys.modules.pop(pysqlite3): 这行代码完成了模块的替换工作。 sys.modules 是一个字典它保存了所有已经导入模块的引用键是模块名值是模块对象。sys.modules.pop(pysqlite3) 这一部分是从 sys.modules 字典中移除键为 pysqlite3 的项并返回对应的值即 pysqlite3 模块的对象。接着这个 pysqlite3 模块的对象被赋值给了 sys.modules[sqlite3]这意味着当你在代码中使用 import sqlite3 时实际上加载的是 pysqlite3 模块而非 Python 标准库中的 sqlite3 模块。 这样做的目的通常是因为 pysqlite3 可能提供了额外的功能或者与某些特定需求更加兼容比如支持更多 SQLite 特性或性能上的优化。通过这种方式开发者可以在不改变原有代码即仍然使用 import sqlite3的情况下使用 pysqlite3 模块的功能。 这里有一个坑需要注意一下就是这俩库 都需要在 opendevin 的 venv 下面安装这几个包哦。要不然 import 的时候会找不到会去用户默认的 site-package 里面找。 ➜ bin ./pip install pysqlite3 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Installing collected packages: pysqlite3 Successfully installed pysqlite3-0.5.3 ➜ bin ./pip install pysqlite3-binary \Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting pysqlite3-binary Installing collected packages: pysqlite3-binary Successfully installed pysqlite3-binary-0.5.3 ➜ bin pwd /home/zhangzhe/.cache/pypoetry/virtualenvs/opendevin-ypH5SPK--py3.11/bin运行成功 node scripts/make-i18n-translations.cjsVITE v5.3.1 ready in 4023 ms➜ Local: http://localhost:3001/➜ Network: use --host to expose➜ press h enter to show help INFO: Started server process [1198078] INFO: Waiting for application startup. INFO: Application startup complete. ERROR: [Errno 98] error while attempting to bind on address (127.0.0.1, 3000): address already in use INFO: Waiting for application shutdown. INFO: Application shutdown complete.界面出来了 这个 devin 使用的是 poetry 提供的 venv 记得切换一下 Python 解释器路径要不然代码索引有问题。
http://www.zqtcl.cn/news/873121/

相关文章:

  • 页面简洁的网站深圳广告宣传片拍摄
  • 做外卖网站青岛助创网络科技有限公司
  • 怎么选择优秀的网站建设公司建设银行宁波分行 招聘网站
  • 工艺品网站模板下载-古色古香建站软件排名
  • 微视频网站源码网站建设目标个人博客dw
  • 山西省建设厅入晋备案网站洛阳网站在哪备案
  • 可以做物理试验的网站有哪些仿微博网站模板
  • 网站横幅怎做网站到期不想续费
  • 黑龙江网站备案管理局济南网站建设策划
  • 网站怎么静态化网页设计与制作图片显示不出来
  • 市场营销推广策划方案网站如何做标题优化
  • 怎么让客户做网站手机网站如何优化
  • 柳州市住房和城乡建设局网站首页赣州章贡区人口
  • 有偷菜餐厅城市建设的网站好的手机网站
  • 做进行网站推广赚钱互联网企业信息服务平台
  • 微信公众号做视频网站吗百度账号登录入口网页版
  • 北京建设银行纪念钞预定官方网站撤销网站备案申请书
  • 网站平台策划书安丘市建设局网站
  • 图片类网站建设seol英文啥意思
  • 网站编辑工作好做吗WordPress的图片存在哪
  • 你的网站尚未进行备案为什么网站百度搜不到了
  • 沙洋网站开发网站建设方案免费
  • iis建设网站教程单页面推广网站
  • 东莞网站建设效果郑州企业自助建站系统
  • php做的购物网站系统下载宜州做网站需要多少钱
  • 昆明网上商城网站建设怎么做网站教程视频
  • 网站开发都需要什么移动公司网络维护待遇
  • 计算机网络技术网站建设方向wordpress虚拟货币
  • 小江网站建设公司紧急页面通知升级中访问大通知
  • 那个公司做的网站详情页好看做动态图片的网站吗