Skip to content

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

Description

@KevinXC5

问题描述

配置了 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 模型。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions