lime icon indicating copy to clipboard operation
lime copied to clipboard

配置 Gemini CLI OAuth 凭证后 API 调用报错:Gemini OAuth routing not yet implemented

Open KevinXC5 opened this issue 11 months ago • 1 comments

问题描述

配置了 Gemini CLI 的 OAuth 凭证后,通过 API 调用时返回错误,提示 OAuth 路由尚未实现。

复现步骤

  1. 配置 Gemini CLI 的 OAuth 凭证
  2. 使用以下命令测试 API:
curl -s http://127.0.0.1:8999/v1/chat/completions \
  -H "Authorization: Bearer xxx" \
  -H "Content-Type: application/json" \
  -d '{"model":"gemini-2.0-flash","messages":[{"role":"user","content":"Say hi in one word"}]}'

错误信息

{"error":{"message":"Gemini OAuth routing not yet implemented."}}

期望行为

使用 Gemini CLI OAuth 凭证时能够正常调用 Gemini 模型。

KevinXC5 avatar Dec 30 '25 03:12 KevinXC5

我也一样

notnotype avatar Jan 04 '26 09:01 notnotype