Open luchaoshi45 opened 1 year ago
r = requests.get(url='https://www.youtube.com/', verify=False, proxies={
'http': f'http://{config.proxy}/',
'https': f'http://{config.proxy}/'
})
assert r.status_code == 200
llm = OpenAI(temperature=config.temperature, openai_api_key=get_openai_key(), verbose=config.debug)
text = "python是世界上最好的语言 "
print(llm(text))
print('测试成功!')
貌似你openai一分钟请求超过3次,请求太频繁了,openai有频率限制
可以使用 https://aigc2d.com 这个平台,支持GPT3.5 GPT4.0接口
我的也是一样,你有解决吗?
Retrying langchain.llms.openai.completion_with_retry.
我的提示这个,一直失败
我的提示这个,一直失败 这个api.openai.com 在国内是不能正常使用的,可以使用 https://aigc2d.com/ 这个平台来替换api.openai.com这个接口
我的提示这个,一直失败 这个api.openai.com 在国内是不能正常使用的,可以使用 https://aigc2d.com/ 这个平台来替换api.openai.com这个接口
那设置里要更改吗?没看到更改接口地址的地方
我的提示这个,一直失败 这个api.openai.com 在国内是不能正常使用的,可以使用 https://aigc2d.com/ 这个平台来替换api.openai.com这个接口
那设置里要更改吗?
需要改下代码
请问一下更改哪个代码,没找到,谢谢
我的提示这个,一直失败 这个api.openai.com 在国内是不能正常使用的,可以使用 https://aigc2d.com/ 这个平台来替换api.openai.com这个接口
那设置里要更改吗?
需要改下代码 一直没找到怎么更改这个接口,麻烦告知一下,谢谢
manager.py
# 测试openai库
llm = OpenAI(temperature=config.temperature, openai_api_key=get_openai_key(), verbose=config.debug,openai_api_base="https://api.aigc2d.com")
core/vup.py
chat = ChatOpenAI(temperature=config.temperature, max_retries=2, max_tokens=150,
openai_api_key=get_openai_key(),openai_api_base="https://api.aigc2d.com")
如果不行就把 https://api.aigc2d.com 换成 https://api.aigc2d.com/v1
然后需要把 config.sample.ini 里的 api_key 换成 aigc2d平台的 apikey
是在这两个代码里添加这行代码是吧。我试试,谢谢
还需要把 config.ini 里的 proxy 改为空
proxy =
openai_api_base 的值改成 https://api.aigc2d.com/v1
显示成功了,但是又有一个问题 读取embedding文件错误,请检查本地是否生成action.json 且动作不为空, 使用action plugin前请先运行 python manager.py action Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "manager.py", line 62, in test_plugin_dependency from pymilvus import connections, has_collection, Collection ModuleNotFoundError: No module named 'pymilvus'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manager.py", line 98, in
python manager.py action 读取embedding文件错误,请检查本地是否生成action.json 且动作不为空, 使用action plugin前请先运行 python manager.py action [Errno 2] No such file or directory: './action.json'
ModuleNotFoundError: No module named 'pymilvus'
应该是没有安装 pymilvus 这个包
装了 后面提示 这个 读取embedding文件错误,请检查本地是否生成action.json 且动作不为空, 使用action plugin前请先运行 python manager.py action [Errno 2] No such file or directory: './action.json' Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\pymilvus\client\grpc_handler.py", line 90, in _wait_for_channel_ready grpc.channel_ready_future(self._channel).result(timeout=3) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\grpc_utilities.py", line 140, in result self._block(timeout) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\grpc_utilities.py", line 86, in _block raise grpc.FutureTimeoutError() grpc.FutureTimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manager.py", line 98, in
那还有安装 milvus 数据库,看代码是需要这个数据库,配置文件里也有这个milvus host 配置
都有安装 读取embedding文件错误,请检查本地是否生成action.json 且动作不为空, 使用action plugin前请先运行 python manager.py action [Errno 2] No such file or directory: './action.json' Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\pymilvus\client\grpc_handler.py", line 90, in _wait_for_channel_ready grpc.channel_ready_future(self._channel).result(timeout=3) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\grpc_utilities.py", line 140, in result self._block(timeout) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\grpc_utilities.py", line 86, in _block raise grpc.FutureTimeoutError() grpc.FutureTimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manager.py", line 98, in
pymilvus.client.exceptions.BaseException: <BaseException: (code=2, message=Fail connecting to server on xxxxxx:19530. Timeout)>
都有安装 ,那就配置好 milvus 正确的主机地址
[milvus]
host = xxxxxx
port = 19530
collection = sun_ba
top_n = 4
pymilvus.client.exceptions.BaseException: <BaseException: (code=2, message=Fail connecting to server on xxxxxx:19530. Timeout)>
都有安装 ,那就配置好 milvus 正确的主机地址
[milvus] host = xxxxxx port = 19530 collection = sun_ba top_n = 4
好复杂,好难弄 麻烦问一下这个要怎么配置呢?完全不懂
PS C:\Users\63568\Desktop\GPT-vup> & 'C:\Users\63568\AppData\Local\Microsoft\WindowsApps\python3.11.exe' 'c:\Users\63568.vscode\extensions\ms-python.python-2023.10.0\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '53845' '--' 'C:\Users\63568\Desktop\GPT-vup\src\manager.py' 'run' 'bilibili' Retrying langchain.llms.openai.completion_with_retry.._completion_with_retry in 4.0 seconds as it raised RateLimitError: Your access was terminated due to violation of our policies, please check your email for more information. If you believe this is in error and would like to appeal, please contact us through our help center at help.openai.com..
Retrying langchain.llms.openai.completion_with_retry.._completion_with_retry in 4.0 seconds as it raised RateLimitError: Your access was terminated due to violation of our policies, please check your email for more information. If you believe this is in error and would like to appeal, please contact us through our help center at help.openai.com..
Retrying langchain.llms.openai.completion_with_retry.._completion_with_retry in 4.0 seconds as it raised RateLimitError: Your access was terminated due to violation of our policies, please check your email for more information. If you believe this is in error and would like to appeal, please contact us through our help center at help.openai.com..
Retrying langchain.llms.openai.completion_with_retry.._completion_with_retry in 8.0 seconds as it raised RateLimitError: Your access was terminated due to violation of our policies, please check your email for more information. If you believe this is in error and would like to appeal, please contact us through our help center at help.openai.com..
PS C:\Users\63568\Desktop\GPT-vup>