Octogen 是一款为开发者打造的开源的代码解释器。
快速上手
在本地电脑安装octopus, 你可以选择使用openai 或者codellama-7B
本地环境要求
- python 3.10 and above
- pip
- docker 24.0.0 and above, docker desktop is recommendedr
安装octogen启动器
pip install og_up
使用og_up启动器初始化本地环境
og_up
开始体验octogen, 在命令行执行og
Welcome to use octogen❤️ . To ask a programming question, simply type your question and press esc + enter
You can use /help to look for help
[1]🎧>
Octopus内部实现
- Octopus 内核: 当前基于notebook实现的代码执行引擎
- Octopus Agent: 处理用户请求,将请求发给大模型服务API和将大模型生成的代码发给Octopus 内核执行代码
- Octopus 命令行工具: 将用户请求发给Agent和渲染Agent返回的代码,文本和图片
每个组件之间都是采用流式方式进行数据交换,大模型每写一个字都会在命令行上面实时展示.
评论