justjavac / openai-proxy Goto Github PK
View Code? Open in Web Editor NEWOpenAI/ChatGPT 免翻墙代理
Home Page: https://closeai.deno.dev
OpenAI/ChatGPT 免翻墙代理
Home Page: https://closeai.deno.dev
请教一下如果用
from langchain.llms import OpenAI
llm = OpenAI()
这种方式构建模型的话,怎么去配置他的代理地址?
openai.error.APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', ConnectionAbortedError(10053, '你的主机中的软件中止了一个已建立的连接。', None, 10053, None))
首先承认:技术确实很先进
我就问一个问题: 它怎么落地,谁买单?市场在哪里
我们有足够大的市场,为啥也不来国内注册一家公司进行运营。
更要命的是: 我们的头部技术人员还热衷主动送语料,供其训练,使其逐步升级进化,然后技术更先进,最后卖给谁?谁买单。
尝试
curl https://closeai.deno.dev/v1/chat/completions curl: (35) TCP connection reset by peer
再次尝试curl 已经无响应
Error: 502 502: Bad Gateway (CONNECTION_BROKEN)\n\nThe deployment failed while serving the request.\n
at W.generate (/app/.next/server/app/api/openai/chat/route.js:22:1839)\n
at tF.makeStatusError (/app/.next/server/app/api/openai/chat/route.js:22:13240)\n
at tF.makeRequest (/app/.next/server/app/api/openai/chat/route.js:22:13970)\n
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n
at async k (/app/.next/server/app/api/openai/chat/route.js:2:2906)\n
at async /app/.next/server/app/api/openai/chat/route.js:7:64510"
昨天还好好的
大神可以出个教程吗?关于如何搭建这个代理的过程,我自己搭建了一下,第一行代码就出错了
如题
使用非deno代理代码连接没问题。
再使用deno部署的地址后就返回,
"request to https://closeai.deno.dev/v1/chat/completions failed, reason: read ECONNRESET"。
不知道是什么网络问题。。
we set the own proxy 'xxxx.deno.dev/v1', it seem does not work out from today. Can you help me. Thanks!
ypeError: No such file or directory (os error 2)
at async mainFetch (ext:deno_fetch/26_fetch.js:277:12)
at async fetch (ext:deno_fetch/26_fetch.js:501:7)
at async Server.#respond (https://deno.land/[email protected]/http/server.ts:299:18)
是不是国内云厂商的域名不支持?一直验证失败。开梯子使用deno自己的域名可以使用,想不开梯子也能使用,请问通过自己云服务器代理到deno是否可行?我自己试了好像不行。
https://closeai.deno.dev/v1 访问404,是不是服务器挂了?
前几天感谢 @justjavac 提供的服务~
用的一键部署,打开出现了服务器错误,请问是什么原因呀
比如这个 https://github.com/oilel/pqt 提供Kyber1024,量子计算机求解Lattice难题的搜索速度相对于经典算法没有明显提高。
现在的代理,确实可以正确代理openai的接口,但是由于使用了await,导致需要等待整个请求完成才会返回结果。大佬能否改造下,使得代理请求也是能够流式的返回内容?
使用const embeddings = new OpenAIEmbeddings();
时如何将前面的configuration传入openaiembedding使其使用代理?
访问链接提示“Internal Server Error”
api提示“The server had an error while processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if the error persists. (Please include the request ID 5b in your message.)”
部署日志
TypeError: No such file or directory (os error 2)
at opFetchSend (ext:deno_fetch/26_fetch.js:89:15)
at mainFetch (ext:deno_fetch/26_fetch.js:266:18)
at ext:deno_fetch/26_fetch.js:451:9
at new Promise ()
at fetch (ext:deno_fetch/26_fetch.js:414:18)
at Server. (file:///src/main.ts:9:12)
at Server.#respond (https://deno.land/[email protected]/http/server.ts:299:37)
at Server.#serveHttp (https://deno.land/[email protected]/http/server.ts:346:20)
at eventLoopTick (ext:core/01_core.js:181:11)
2023-05-23 09:56:18
TypeError: No such file or directory (os error 2)
at opFetchSend (ext:deno_fetch/26_fetch.js:89:15)
at mainFetch (ext:deno_fetch/26_fetch.js:266:18)
at ext:deno_fetch/26_fetch.js:451:9
at new Promise ()
at fetch (ext:deno_fetch/26_fetch.js:414:18)
at Server. (file:///src/main.ts:9:12)
at Server.#respond (https://deno.land/[email protected]/http/server.ts:299:37)
at Server.#serveHttp (https://deno.land/[email protected]/http/server.ts:346:20)
at eventLoopTick (ext:core/01_core.js:181:11)
2023-05-23 09:55:11
TypeError: No such file or directory (os error 2)
at async mainFetch (ext:deno_fetch/26_fetch.js:266:12)
at async fetch (ext:deno_fetch/26_fetch.js:490:7)
at async Server.#respond (https://deno.land/[email protected]/http/server.ts:299:18)
2023-05-23 09:55:07
isolate start time: 287.50 ms
2023-05-23 09:55:07
Listening on http://localhost:80/
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.