Open flyingantwjy opened 11 months ago
@flyingantwjy 把claude_api.py文件末尾的代理地址换成你自己的就可以了。
@flyingantwjy 把claude_api.py文件末尾的代理地址换成你自己的就可以了。 请问怎么换?
我也不会,到现在没弄好
Wang Jiayin @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年8月9日(星期三) 上午8:56 收件人: @.>; 抄送: "Wang @.>; @.>; 主题: Re: [wwwzhouhui/Claude2-PyAPI] requests.exceptions.ProxyError (Issue #2)
@flyingantwjy 把claude_api.py文件末尾的代理地址换成你自己的就可以了。 请问怎么换?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
谢谢
Wang Jiayin @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年8月9日(星期三) 上午10:40 收件人: @.>; 抄送: "Wang @.>; @.>; 主题: Re: [wwwzhouhui/Claude2-PyAPI] requests.exceptions.ProxyError (Issue #2)
看这个作者新增的doc代理设置
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
现在出现这个问题了:File "e:/人工智能/claude/Claude2-PyAPI-master/Claude2-PyAPI-master/console_chat.py", line 27, in main conversation_id = conversation['uuid'] KeyError: 'uuid'
以上问题都是因为国内网络的问题,我前几天更新了代码,通过代理方式解决。 env 配置文件增加
HTTP_PROXY="http://127.0.0.1:10809" HTTPS_PROXY="https://127.0.0.1:10809"
ISPROXY=True 参考这地方 另外感谢 @QvQQ 给出的解答。
@flyingantwjy 代理配置的时候不要使用带有TLS 方式。端口不要使用443端口访问的,因为需要客户端证书配置,这个代码需要修改比较麻烦,所以建议代理走80端口访问
requests.exceptions.ProxyError: HTTPSConnectionPool(host='claude.ai', port=443): Max retries exceeded with url: /api/organizations (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000279EFE8C1C8>: Failed to establish a new connection: [WinError 10061]
由于目标计算机积极拒绝,无法连接。')))