zotero-gpt
zotero-gpt copied to clipboard
Cannot convert string to ByteString because the caharacter at index 58 has value 12289 which is greater than 255
这个问题是否已有issue
- [X] 我确认没有已有issue,且已阅读常见问题
运行环境
- OS: Windows 10
- Zotero version: 6.0.24
- Plugin version: 0.2.5
当前配置信息
No response
问题详情
使用任何功能,都提示如题目error
补充说明
No response
/report 回车,看下你的配置
/report 回车,看下你的配置
api
https://api.openai.com
secretKey
sk-...roF、
model
gpt-3.5-turbo
temperature
1.0
是否多输入了?
密钥肯定不会有顿号,估计是这个引起,如还不能解决重开问题。
运行环境
OS: Macos 13.3.1 Zotero version: 6.0.26 Plugin version: 0.2.6
问题详情
我碰到类似的问题,但是key是正确的,因为我在zotero-pdf-translate插件试过了,但是我这里使用了反向代理服务器。代理服务器也是没有问题的,也在zotero-pdf-translate验证过了。
Cannot convert string to ByteString because the caharacter at index 7 has value 65279 which is greater than 255
正常问答可以吧。另外asjpdf会用api的非会话功能,可能没代理上?
正常问答也有同样的问题
那你是代理的哪个api
我不太懂怎么代理的
我给你看一下服务器端的反向代理配置
(base) ubuntu@VM-0-12-ubuntu:~$ cat /etc/nginx/conf.d/proxy.conf server { listen 443 ssl; server_name gptac.blackhouse.tech; ssl_certificate *.pem; ssl_certificate_key *.key; ssl_session_cache shared:le_nginx_SSL:1m; ssl_session_timeout 1440m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers on; ssl_ciphers TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:TLS13-AES-128-CCM-8-SHA256:TLS13-AES-128-CCM-SHA256:EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+ECDSA+AES128:EECDH+aRSA+AES128:RSA+AES128:EECDH+ECDSA+AES256:EECDH+aRSA+AES256:RSA+AES256:EECDH+ECDSA+3DES:EECDH+aRSA+3DES:RSA+3DES:!MD5; location / { proxy_pass https://api.openai.com/; proxy_ssl_server_name on; proxy_set_header Host api.openai.com; proxy_set_header Connection ''; proxy_http_version 1.1; chunked_transfer_encoding off; proxy_buffering off; proxy_cache off; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } }
所有对 https://gptac.blackhouse.tech 的请求都会在替换掉请求头后转发给 https://api.openai.com/ 这个反向代理服务器是我自己的,你可以试一试 另外,我在zotero-pdf-translate插件里面的url配置为https://gptac.blackhouse.tech/v1/chat/completions,可以作为参考