chatanywhere / gpt_api_free Goto Github PK
View Code? Open in Web Editor NEWFree ChatGPT API Key,免费ChatGPT API,支持GPT4 API(免费),ChatGPT国内可用免费转发API,直连无需代理。可以搭配ChatBox等软件/插件使用,极大降低接口使用成本。国内即可无限制畅快聊天。
License: MIT License
Free ChatGPT API Key,免费ChatGPT API,支持GPT4 API(免费),ChatGPT国内可用免费转发API,直连无需代理。可以搭配ChatBox等软件/插件使用,极大降低接口使用成本。国内即可无限制畅快聊天。
License: MIT License
https://api.chatanywhere.com.cn/v1
以上url不被openai所支持,500报错
以下为测试代码:
import openai
openai.api_base = "https://api.chatanywhere.com.cn/v1"
openai.api_key = "sk-0PfcSdT723UR44igwVxvEWvLoZJgi0FJyZWy0WCCATp5ka2a"
model_engine = "gpt-3.5-turbo"
prompt = "hello"
completions = openai.Completion.create(
engine=model_engine,
prompt=prompt,
max_tokens=1024,
temperature=0.8
)
message = completions.choices[0].text
print(message)
报错:openai.error.APIError: HTTP code 500 from API (Request method 'POST' not supported)
apibase也改了,key也放了。测试直接用POST是可以通的。
chat = ChatOpenAI(streaming=True, callbacks=[StreamingStdOutCallbackHandler()], temperature=1, openai_api_base=openai_endpoint, openai_api_key=”sk-xxxxxx“)
调用结果失败,貌似是被转发服务器拒绝了
[chain/error] [1:llm:ChatOpenAI] [32.17s] Chain run errored with error:
"APIError(message="HTTP code 500 from API (Request method 'POST' not supported)", http_status=500, request_id=None)"
zotero-gpt如果使用免费的key,需要将zotero中的(编辑-首选项-高级-编辑器-extensions.zotero.zoterogpt.api的value https://api.openai.com替换成api.chatanywhere.cn)
你好,我今天刚刚用这个项目申请了免费key,但是key目前已经失效了
程序报错:Incorrect API key provided: sk-EWUgz***************************************HVxj
但因为录入的数据太多,直接卡住了
目前免费的API生成文字有点慢,请问付费后的API速度和免费的是一样的吗?
上个问题还没解决,怎么就 close 了。 related to: #8
我去openai 官网问了一下同样的问题,结果如下:
我是用 poe.com 每天一次的 chatgpt4 问同样的问题:
这个怎么解释
买了API Key你们网站也用不了啊。。。
argument of type 'NoneType' is not iterable
Good morning, Sorry to bother you, I wanted to know If you have another payment option
besides Alipay? Because I want to buy an API Key, however I don't have a passport to verify my Alipay account.
猜测是因为服务器设置的超市时间太短了,能否调整一下
用付费api时的GPT4时,在chatbox中出现这样的提示:
{"error":{"message":"Rate limit reached for default-gpt-4 in organization org-ATlb4GCUpG1s9F0EOR0L0xhf on tokens per min. Limit: 40000 / min. Please try again in 1ms. Contact us through our help center at help.openai.com if you continue to have issues.","type":"tokens","param":null,"code":null}}
但是我只是简单问了一个问题并未如提示所说有达到rate limit的行为。我试了下gpt3.5的模型都是可以的,请问是出现了什么问题呢?谢谢!
买了30块钱那个付费的 key,试了这两个地址的返回都不是 gpt4,所以这个是假的?模型都选择了 gpt-4
Retrying langchain.embeddings.openai.embed_with_retry.<locals>._embed_with_retry in 10.0 seconds as it raised APIError: HTTP code 500 from API (Request method 'POST' not supported).
请问一下免费key是不支持embeddings吗?
你们这个最多几个线程呢?绑信用卡了吗
测试了一下GPT-3.5-Turbo-16K,发现确实可以使用,但是目前响应速度较慢,甚至不如原来的GPT-3.5-Turbo,请问是否有可能优化?
请问下像以下的两个服务器我们客户端字节通过api调用发送请求开开启stream=true 的流式回复消息请求,是不是没效果啊?支不支持sse的回传消息呢?因为使用了以下的服务器,它开启流式sse接收回复的消息是一整块的多行消息一起一次性被接收的。没有逐行接收到sse的事件发送的数据。
Host1: https://api.chatanywhere.cn (国外服务器使用)
Host2: https://api.chatanywhere.com.cn (国内中转,延时更低,推荐)
网站挂了,404:https://api.chatanywhere.com.cn/
如题
{"error":{"message":"Incorrect API key provided: sk-6CIYf***************************************zqhi. You can find your API key at https://platform.openai.com/account/api-keys.","type":"invalid_request_error","param":null,"code":"invalid_api_key"}}
after I run code in the demo , the error pop up (False, 'OpenAI API 异常: HTTP code 401 from API (wrong api key\n)'), my setting are
openai.api_key = "sk-0PfcSdT723UR44igwVxvEWvLoZJgi0FJyZWy0WCCATp5ka2a"
openai.api_base = "https://api.chatanywhere.com.cn/v1"
has anyone encounter this problem also?
如题
要是科学上网的话,host能不能写成api.openai.com 呢
你好,我想请问一下:是否支持gpt_academic??
谢谢
OkHttpClient client = new OkHttpClient();
String messages="[{'role': 'user','content': '鲁迅和周树人的关系'},]";
JSONObject requestBody = new JSONObject();
requestBody.put("model", "gpt-3.5-turbo");
requestBody.put("messages", messages);
requestBody.put("stream", false);
RequestBody body = RequestBody.create(MediaType.parse("application/json"), requestBody.toString());
Request request = new Request.Builder()
.url("https://api.chatanywhere.com.cn/v1")
.addHeader("Authorization", "Bearer sk-Wstozi(……)kyQgyfUOxrjpDG3Y")
.post(body)
.build();
Call call = client.newCall(request);
Response response = call.execute();
String responseBody = response.body().string();
System.out.println(responseBody);
我想在 gpt-academic 项目中使用你的 key,请教一下怎么设置 API 转发?
在项目https://github.com/StanGirard/quivr中,作者使用了 supabase后端服务,我怎样在该项目中应用 API key?
您好,我现在用的是免费api,麻烦问下上面的报错是什么情况?
另外,如果我用付费api的话是否就不会出现这种报错了?
支持了付费api后,中科院版chatgpt的又该配置?能否一并出个教程加入快速使用文档中?
流响应速度也太慢了吧,一个字一个字的蹦
转发api key对应的两个host感觉都不太稳定,尤其是在用sidebar的时候,经常用着就连不上了,或者回应速度会变得非常慢。同时,感觉转发api的速度比直连官方接口速度会慢不少。不知道是不是host访问量过大的原因?能否优化升级一下呢?谢谢!
接微信用的,现在识别不了语音那
见到一个开源;https://github.com/zhayujie/chatgpt-on-wechat
我能否用购买的api用在这个项目上,
代理地址是api.chatanywhere.com.cn:443这样对吗???
好希望能成功,希望 回复一下
大佬,Obsidian的GPT插件没有填写服务器的地方,这个得怎么解决啊?
有余额,但是手机和电脑都报错500, 401之类
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.