WWW.YOUINFO.SITE
标签聚合 Authorization

/tag/Authorization

linux.do · 2026-05-04 18:16:11+08:00 · tech

今天想使用 sub2api 导入账号,使用Authorization Method,如图: 复制网页,登录 ChatGPT账号,接验证码,绑定手机号(我使用的是国内手机号),但是输完手机号点击绑定的时候,直接提示:糟糕,出错了!我中间换了几个节点,用无痕浏览器都还是提示这个错误。请问有佬友遇到这个问题吗?怎么解决呢?是国内手机号不支持? 4 个帖子 - 3 位参与者 阅读完整话题

linux.do · 2026-04-26 19:23:52+08:00 · tech

题目 test.example.com { @authed { header Authorization "Bearer 123123123" } import log test.example.com import common reverse_proxy @authed 127.0.0.1:3003 respond 401 { body "Unauthorized" } } curl -X GET "https://test.example.com" \ -H "Authorization: Bearer 123123123" Unauthorized 为什么 Unauthorized? 回答结果 模型名称 reasoning effort 回答正确与否 耗时 deepseek v4 flash max 1.2m deepseek v4 pro web端专家模式+深度思考 3m glm-5.1 3m gpt-5.4 xhigh 18s kimi-k2.6 7m 因为我用的 ollama 还没上 deepseek v4 pro,所以用 web 端测试 正确答案 respond 不加 matcher 会匹配所有请求,并且优先于 reverse_proxy 观察思考内容 发现大部分模型都被这两行配置硬控住,反复思考,导致耗时很长。 import log test.example.com import common 7 个帖子 - 6 位参与者 阅读完整话题

linux.do · 2026-04-22 11:24:08+08:00 · tech

curl --location 'https://chatgpt.com/backend-api/codex/responses' \ --header 'Authorization: Bearer' \ --header 'chatgpt-account-id: ' \ --header 'user-agent: codex-tui/0.122.0 (Manjaro 26.1.0-pre; x86_64) vscode/3.0.12 (codex-tui; 0.122.0)' \ --header 'version: 0.122.0' \ --header 'originator: codex_cli_rs' \ --header 'session_id: test-session' \ --header 'accept: text/event-stream' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-5.4", "input": [ { "role": "user", "content": "画一只可爱的猫抱着水獭" } ], "tools": [ { "type": "image_generation", "output_format": "png" } ], "instructions": "you are a helpful assistant", "tool_choice": "auto", "stream": true, "store": false }' 看了下返回值,貌似是按 token 计算的,并且使用任意模型调用,最终都是 gpt-image-2,再也不用折腾 flow 打码了,这还要什么自行车 1 个帖子 - 1 位参与者 阅读完整话题