Bing 配置好后不可用?
部署方式:huggingface space
按照文档中在控制台执行代码,获得了 scopeId、idToken
访问了 https://login.live.com/oauth20_authorize.srf 并从网络请求中找到了相当长的token
使用Cherry studio 向 bing 模型发送请求

容器内报错:
2025/05/07 20:12:57 [Recovery] 2025/05/07 - 20:12:57 panic recovered:
interface conversion: interface {} is nil, not string
runtime/iface.go:275 (0x40de64)
github.com/bincooo/edge-api@v1.0.4-0.20250211074233-37fe84649a9b/oauth20.go:46 (0xde6f13)
chatgpt-adapter/relay/llm/bing/adapter.go:247 (0xdead87)
chatgpt-adapter/relay/llm/bing/adapter.go:88 (0xde9505)
chatgpt-adapter/relay/alloc/bing/ctor.go:12 (0xd9fa3e)
chatgpt-adapter/relay/alloc/bing/bing.go:72 (0xda0302)
chatgpt-adapter/relay/alloc/bing/ctor.go:19 (0xd9f93a)
chatgpt-adapter/relay/alloc/bing/ctor.go:10 (0xd9f932)
chatgpt-adapter/core/gin/v1.go:96 (0xd9c56f)
github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xd9bed5)
chatgpt-adapter/core/gin/initializer.go:86 (0xd9bec3)
github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xa63e4e)
github.com/gin-gonic/gin@v1.10.0/recovery.go:102 (0xa63e3b)
github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xa63e4e)
github.com/gin-gonic/gin@v1.10.0/recovery.go:102 (0xa63e3b)
github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xa62f84)
github.com/gin-gonic/gin@v1.10.0/logger.go:249 (0xa62f6b)
github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xa62371)
github.com/gin-gonic/gin@v1.10.0/gin.go:633 (0xa61de0)
github.com/gin-gonic/gin@v1.10.0/gin.go:589 (0xa61911)
net/http/server.go:3210 (0x821cad)
net/http/server.go:2092 (0x8011cf)
runtime/asm_amd64.s:1700 (0x479a80)
关闭于 2025-05-09 2 条评论