ilyydy / cf-openai Goto Github PK
View Code? Open in Web Editor NEWDeploy your chatGPT service on Cloudflare Workers and integrate with apps.
License: MIT License
Deploy your chatGPT service on Cloudflare Workers and integrate with apps.
License: MIT License
完成后,打开网页,提示"提交的数据不合法",且微信公众号里无论开启服务器还是停止服务器,一样的报错,麻烦看一下,谢谢
目前的交互体验不是很好,会经常出现响应超时的情况。这虽然是不可避免的,但是可以改善一下目前的交互体验。有以下建议:
暂时想到这些,上述逻辑已经我的仓库中实现了,如果可以的话,我后续会提交 PR。
也希望能交流一下,看看还有没有其他更好的方法。
KV 不同节点同步需要时间,适合常读少写的场景。
https://developers.cloudflare.com/workers/learning/how-kv-works/
KV achieves this performance by being eventually-consistent. Changes are usually immediately visible in the Cloudflare network edge location at which they are made but may take up to 60 seconds to be visible in other network edge locations as their cached versions of the data time out. In particular, visibility of changes takes longer in locations which have recently read a previous version of a given key (including reads that indicated the key did not exist, which are also cached locally). Workers KV is not ideal for situations where you need support for atomic operations or where values must be read and written in a single transaction.
对于限流/锁这种需要高频写/原子性操作的,看起来用 Durable Objects,但是要开付费才能用
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@commitlint/cli
, @commitlint/config-conventional
)@vitest/coverage-c8
, vitest
).github/workflows/build.yml
actions/checkout v3
actions/setup-node v3
ncipollo/release-action v1
.github/workflows/clean-cache.yml
actions/checkout v3
.github/workflows/deploy.yml
actions/checkout v3
actions/setup-node v3
cloudflare/wrangler-action 2.0.0
.github/workflows/test.yml
actions/checkout v3
actions/setup-node v3
package.json
fast-xml-parser ^4.1.3
@cloudflare/workers-types ^4.20230307.0
@commitlint/cli ^17.5.0
@commitlint/config-conventional ^17.4.4
@types/lodash ^4.14.191
@typescript-eslint/eslint-plugin ^5.56.0
@typescript-eslint/parser ^5.56.0
@vitest/coverage-c8 ^0.31.0
@wecom/crypto ^1.0.1
conventional-changelog-cli ^2.2.2
cz-conventional-changelog ^3.3.0
esbuild ^0.17.13
eslint ^8.36.0
husky ^8.0.3
lint-staged ^13.2.0
openai ^3.2.1
tsx ^3.12.3
typescript ^5.0.0
vitest ^0.31.0
vitest-environment-miniflare ^2.12.1
wrangler ^3.0.0
zod ^3.21.4
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.