Junyan Qin (Chin)

Results 52 comments of Junyan Qin (Chin)

我也遇到了这个问题,这样会导致wxss不生效,经测试,将src/index.wxml第34行中的*this改为index即可解决

不能写 api.openai.com 的,这是官方 API 的 url。逆向工程的 url 要写 `chat.openai.com` 这种,但是具体的不清楚,建议自己在同一机器上搭个反向代理然后填上去。

你们好,我现在也在用caddy代理api.openai.com,配置如下: ``` my.domain.me { reverse_proxy api.openai.com } ``` 但访问时被cloudflare拦截了,请问可否提供你们的方案供我参考一下? ![image](https://github.com/Chanzhaoyu/chatgpt-web/assets/45992437/3e48f8c8-5971-4d06-b1b1-febad1b281d8) ![image](https://github.com/Chanzhaoyu/chatgpt-web/assets/45992437/5f1f9786-090d-4a6f-bcfb-5788ed01507b)

If you have already add a channel, but still got such error, you can try to change the model name to `gpt-3.5-turbo` on the caller. Free one API now only...

how can I reproduce this problem?

当然不支持啊,这是转换成 OpenAI 的 ChatCompletions 格式协议

首次测试g4f渠道,会从前往后测试各个g4f逆向网站,直到找到一个可用的。最好是用境外主机,网络好一点。

这个问题是由于hypercorn框架内部注册了 signal.SIGINT 信号导致的: https://github.com/pgjones/hypercorn/blob/3fbd5f245e5dfeaba6ad852d9135d6a32b228d05/src/hypercorn/asyncio/run.py#L64-L76 为了使web server能在ctrl+c时才退出,当quart开始运行时,默认会为底层忽略传入 shutdown_trigger ,以使hypercorn自动监听 退出信号。 但如果你的程序自行控制了整个程序的退出,同时以一种较为动态的方式运行了aiocqhttp(quart),就会导致 ctrl+c 时仍有 task 在运行而无法退出。 ## 简易的解决办法 定义一个阻塞的异步方法: ```python async def shutdown_trigger_placeholder(): while True: await asyncio.sleep(1) ``` 作为shutdown_trigger 具名参数传入 CQHttp 的run方法:...