chatanywhere / GPT_API_free

Free ChatGPT API Key,免费ChatGPT API,支持GPT4 API(免费),ChatGPT国内可用免费转发API,直连无需代理。可以搭配ChatBox等软件/插件使用,极大降低接口使用成本。国内即可无限制畅快聊天。
MIT License
20.51k stars 1.57k forks source link

请问我现在在境外可以使用吗 #262

Open MrGiraffe09 opened 1 month ago

MrGiraffe09 commented 1 month ago

import os os.environ["OPENAI_API_KEY"] = "THE KEY" from langchain_experimental.agents.agent_toolkits import create_csv_agent from langchain_openai import ChatOpenAI llm = ChatOpenAI(temperature=0.1) agent_executer = create_csv_agent(llm, '/kaggle/working/book.csv', verbose=True, allow_dangerous_code=True) agent_executer.invoke("When looking at the Publisher column, how many many books are published on each of the 3 Publishers including [jPublisher A], [Publisher B], [Publisher C]?")

AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-0dUwC***TRrR. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}

我是几分钟前才用自己的GitHub绑定的,这个key显示不能用

MrGiraffe09 commented 1 month ago

补充一下 我是在类似Google colab 的软件上跑,是不是就用不了呢

chatanywhere commented 1 month ago

没有修改url 和你境外没有关系 请阅读README

MrGiraffe09 commented 1 month ago

没有修改url 和你境外没有关系 请阅读README

请问在Google colab,kaggle这种线上编程网站使用也可以修改url吗

chatanywhere commented 1 month ago

当然可以