Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open-interpreter 接入 #36

Open
bincooo opened this issue Jun 11, 2024 · 2 comments
Open

open-interpreter 接入 #36

bincooo opened this issue Jun 11, 2024 · 2 comments

Comments

@bincooo
Copy link
Owner

bincooo commented Jun 11, 2024

STEP_1: 安装 open-interpreter

conda create -n interpreter python=3.11
conda activate interpreter
pip install open-interpreter==0.2.6
pip install pynput sse-starlette fastapi

SETP_2: 替换文件

server.py.zip 已更新,该文件失效

先查看安装后的路径

whereis interpreter
Screenshot 2024-06-11 at 13 20 15

如图所示,则替换路径

/usr/local/Caskroom/miniconda/base/envs/interpreter/lib/python3.11/site-packages/interpreter/core/server.py

SETP_3: 启动服务

添加 --server 参数
例:

interpreter --model coze/gpt4o --auto_run --server
Screenshot 2024-06-11 at 13 25 53

最后在chatgpt-adapter里配置地址即可
Screenshot 2024-06-11 at 13 26 55


目前该接口是完全阻塞,执行完毕后才会响应。本人对python的类库不熟悉,无能为力了。

👏👏👏欢迎python大佬给出解决方案👏👏👏

@bincooo bincooo pinned this issue Jun 11, 2024
@bincooo
Copy link
Owner Author

bincooo commented Jun 11, 2024

效果如下:

AI:coze逆向接口

platform:MacOS 14

bilibili演示

Screenshot 2024-06-11 at 13 51 51

@bincooo
Copy link
Owner Author

bincooo commented Jun 11, 2024

更新 server.py 文件
server.py.zip

  • 改为http对接
  • 解决流问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant