maxduke / go-chatgpt-api

一个尝试绕过 Cloudflare 来使用 ChatGPT 接口的程序
MIT License
143 stars 33 forks source link

请问报错 unable to check chat requirement 该如何处理 #72

Closed dengchangdong closed 1 month ago

dengchangdong commented 1 month ago

请问大佬,运行时报错 unable to check chat requirement ,该如何处理,谢谢。

docker-compose.yml 内容

version: '3'

services:
  go-chatgpt-api:
    container_name: GO-ChatGPT-API
    image: maxduke/go-chatgpt-api:latest
    restart: unless-stopped
    environment:
      - GIN=release
      - TZ=Asia/Shanghai
      - PROCESS_TURNSTILE=true
      - CLIENT_PROFILE=chrome_124
      - UA=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
    volumes:
      - ./harPool/chatgpt.com.har:/app/harPool/chatgpt.com.har
GO-ChatGPT-API  | INFO[0000] ClientProfile: chrome_124 is used 
GO-ChatGPT-API  | INFO[0000] Health Check is disabled          
GO-ChatGPT-API  | ERRO[0011] unable to check chat requirement  
GO-ChatGPT-API  | [GIN] 2024/07/17 - 13:23:38 | 200 |   84.319696ms |      172.26.0.3 | POST     "/chatgpt/backend-api/conversation"
maxduke commented 1 month ago

ipv6?

On Wed, Jul 17, 2024 at 20:15 Deng Changdong @.***> wrote:

请问大佬,运行时报错 unable to check chat requirement ,该如何处理,谢谢。

docker-compose.yml 内容

version: '3'

services: go-chatgpt-api: container_name: GO-ChatGPT-API image: maxduke/go-chatgpt-api:latest restart: unless-stopped environment:

  • GIN=release
  • TZ=Asia/Shanghai
  • PROCESS_TURNSTILE=true
  • CLIENT_PROFILE=chrome_124
  • UA=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 volumes:
  • ./harPool/chatgpt.com.har:/app/harPool/chatgpt.com.har

GO-ChatGPT-API | INFO[0000] ClientProfile: chrome_124 is used GO-ChatGPT-API | INFO[0000] Health Check is disabled GO-ChatGPT-API | ERRO[0011] unable to check chat requirement GO-ChatGPT-API | [GIN] 2024/07/17 - 13:23:38 | 200 | 84.319696ms | 172.26.0.3 | POST "/chatgpt/backend-api/conversation"

— Reply to this email directly, view it on GitHub https://github.com/maxduke/go-chatgpt-api/issues/72, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADLUBDUZD4NULZ5KH2DRFLZMZN6VAVCNFSM6AAAAABLAQE2K2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYTGNBWGI2TSMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dengchangdong commented 1 month ago

是ipv4,搬瓦工的vps cn-giae线路

maxduke commented 1 month ago

直接用服务器IP可以跑么?出人机么?

On Wed, Jul 17, 2024 at 21:24 Deng Changdong @.***> wrote:

是ipv4,搬瓦工的vps cn-giae线路

— Reply to this email directly, view it on GitHub https://github.com/maxduke/go-chatgpt-api/issues/72#issuecomment-2233317746, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADLUBGHA7XMPBLWCY2OW33ZMZV7XAVCNFSM6AAAAABLAQE2K2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTGMYTONZUGY . You are receiving this because you commented.Message ID: @.***>

dengchangdong commented 1 month ago

直接用服务器IP可以跑么?出人机么? On Wed, Jul 17, 2024 at 21:24 Deng Changdong @.> wrote: 是ipv4,搬瓦工的vps cn-giae线路 — Reply to this email directly, view it on GitHub <#72 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADLUBGHA7XMPBLWCY2OW33ZMZV7XAVCNFSM6AAAAABLAQE2K2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTGMYTONZUGY . You are receiving this because you commented.Message ID: @.>

服务器IP应该没有黑,使用这个IP代理登录和使用ChatGPT都没有出人机验证。 测试借口正常。

>   curl http://173.242.124.96:1085/chatgpt/backend-api/conversation \
>   -H "Content-Type: application/json" \
>   -d '{
>      "model": "gpt-3.5-turbo",
>      "messages": [{"role": "user", "content": "Say this is a test!"}],
>      "temperature": 0.7
>    }'
{"errorMessage":"please provide a valid access token or api key in 'Authorization' header"}
maxduke commented 1 month ago

看了下,可能是搬瓦工解锁是DNS解锁的关系? 报那个错就是访问打码的服务器出问题。 有条件的话还是换一家试试,大众的VPS基本都不能原生解锁

On Thu, Jul 18, 2024 at 19:36 Deng Changdong @.***> wrote:

直接用服务器IP可以跑么?出人机么? … <#m2345454125931529033> On Wed, Jul 17, 2024 at 21:24 Deng Changdong @.> wrote: 是ipv4,搬瓦工的vps cn-giae线路 — Reply to this email directly, view it on GitHub <#72 (comment) https://github.com/maxduke/go-chatgpt-api/issues/72#issuecomment-2233317746>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADLUBGHA7XMPBLWCY2OW33ZMZV7XAVCNFSM6AAAAABLAQE2K2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTGMYTONZUGY https://github.com/notifications/unsubscribe-auth/AADLUBGHA7XMPBLWCY2OW33ZMZV7XAVCNFSM6AAAAABLAQE2K2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTGMYTONZUGY . You are receiving this because you commented.Message ID: @.>

服务器IP应该没有黑,使用这个IP代理登录和使用ChatGPT都没有出人机验证。 测试借口正常。

curl http://173.242.124.96:1085/chatgpt/backend-api/conversation \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "Say this is a test!"}], "temperature": 0.7 }'

{"errorMessage":"please provide a valid access token or api key in 'Authorization' header"}

— Reply to this email directly, view it on GitHub https://github.com/maxduke/go-chatgpt-api/issues/72#issuecomment-2236281470, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADLUBGZZUDL37QURZSF22LZM6SERAVCNFSM6AAAAABLAQE2K2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZWGI4DCNBXGA . You are receiving this because you commented.Message ID: @.***>

dengchangdong commented 1 month ago

好的,谢谢!我换个VPS试一试。