metagpt agent 时代的公司

基础模型强大后怎么样呢?来试一下

2024年中都时候跑过一次,花了我几十块钱token,最后一个demo 都没成功,放弃了

官网的架构图

https://github.com/geekan/MetaGPT

需要使用python 版本 3.12 一下

使用pyenv install 3.11 ,pyenv 安装后记得将加入到path 中

shell 复制代码
export PATH="$HOME/.pyenv/shims:$PATH"

准备venv

shell 复制代码
python -m venv .venv 
source .venv/bin/activate 

install metagpt

python 复制代码
 git clone https://github.com/geekan/MetaGPT && cd MetaGPT && pip install --upgrade -e 

初始化配置文件, 用于配置大模型配置

bash 复制代码
# Check https://docs.deepwisdom.ai/main/en/guide/get_started/configuration.html for more details
metagpt --init-config  # it will create ~/.metagpt/config2.yaml, just modify it to your needs

打开配置文件

bash 复制代码
~/.metagpt/config2.yaml

参考配置,我使用的火山提供的api

bash 复制代码
# Full Example: https://github.com/geekan/MetaGPT/blob/main/config/config2.example.yaml
# Reflected Code: https://github.com/geekan/MetaGPT/blob/main/metagpt/config2.py
# Config Docs: https://docs.deepwisdom.ai/main/en/guide/get_started/configuration.html
llm:
  api_type: "openai"  # or azure / ollama / groq etc.
  model: "doubao-1-5-pro-32k-250115"  # or gpt-3.5-turbo
  base_url: "https://ark.cn-beijing.volces.com/api/v3"  # or forward url / other llm url
  api_key: "xxxxxxxx"  # 替换自己的key 

没有注册过的可以用这个链接参与活动 HY89EOI9

all ready

bash 复制代码
metagpt "Create a 2048 game" 

开始执行了

过程文档归档

bash 复制代码
2025-03-09 10:05:40.159 | INFO     | metagpt.utils.git_repository:archive:168 - Archive: ['.dependencies.json', 'docs/prd/20250309100158.json', 'docs/requirement.txt', 'docs/system_design/20250309100158.json', 'docs/task/20250309100158.json', 'game_2048/game_logic.py', 'game_2048/main.py', 'game_2048/score_tracker.py', 'game_2048/ui.py', 'requirements.txt', 'resources/competitive_analysis/20250309100158.mmd', 'resources/data_api_design/20250309100158.mmd', 'resources/prd/20250309100158.md', 'resources/seq_flow/20250309100158.mmd', 'resources/system_design/20250309100158.md']

看看最终效果

还是有点问题,已经不错,似乎是code review 的时候出现了问题

相关推荐
槑辉_1 分钟前
【se-res模块学习】结合CIFAR-10分类任务学习
图像处理·人工智能·pytorch·深度学习·机器学习·分类
乱世刀疤28 分钟前
深度 |提“智”向新,奔向未来——当前机器人产业观察
人工智能·机器人
一起喝芬达201034 分钟前
cursor平替,试试 vscode+cline+openrouter 的方案,还能自定义 mcp-server 教程大纲
ide·ai·ai编程
DisonTangor1 小时前
LLaMA-Omni 2:基于 LLM 的自回归流语音合成实时口语聊天机器人
人工智能·开源·aigc·音视频·llama
晓13131 小时前
第四章 OpenCV篇—图像梯度与边缘检测—Python
人工智能·python·opencv·计算机视觉·pycharm
tuan_zhang1 小时前
西门子Industrial Copilot深度解析:工业智能的技术攻坚与生态重构
人工智能·copilot·工业软件
蹦蹦跳跳真可爱5891 小时前
Python----神经网络(《Going deeper with convolutions》论文解读和GoogLeNet网络)
网络·人工智能·pytorch·python·神经网络
AI掘金2 小时前
DeepSeek实战--微调
ai·大模型·aigc·大模型微调·ai应用
虹科网络安全2 小时前
艾体宝方案丨深度解析生成式 AI 安全风险,Lepide 为数据安全护航
人工智能·aigc·ai监控·lepide·ai安全风险
shao9185162 小时前
Gradio全解20——Streaming:流式传输的多媒体应用(6)——RT-DETR模型构建视频流目标检测系统
人工智能·gradio·streaming·rt-detr·视频流目标检测·rt-detrv2