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 的时候出现了问题

相关推荐
红衣小蛇妖24 分钟前
神经网络-Day46
人工智能·深度学习·神经网络
带电的小王1 小时前
【动手学深度学习】3.1. 线性回归
人工智能·深度学习·线性回归
谢尔登1 小时前
结合 AI 生成 mermaid、plantuml 等图表
人工智能
VR最前沿1 小时前
【应用】Ghost Dance:利用惯性动捕构建虚拟舞伴
人工智能·科技
说私域1 小时前
内容力重塑品牌增长:开源AI大模型驱动下的智能名片与S2B2C商城赋能抖音生态种草范式
人工智能·小程序·开源·零售
l1t1 小时前
三种读写传统xls格式文件开源库libxls、xlslib、BasicExcel的比较
c++·人工智能·开源·mfc
AI浩2 小时前
【Block总结】EBlock,快速傅里叶变换(FFT)增强输入图像的幅度|即插即用|CVPR2025
人工智能·目标检测·计算机视觉
Vertira2 小时前
Pytorch安装后 如何快速查看经典的网络模型.py文件(例如Alexnet,VGG)(已解决)
人工智能·pytorch·python
Listennnn2 小时前
信号处理基础到进阶再到前沿
人工智能·深度学习·信号处理
奔跑吧邓邓子2 小时前
DeepSeek 赋能智能养老:情感陪伴机器人的温暖革新
人工智能·机器人·deepseek·智能养老·情感陪伴