Skip to content

[Bug]: 使用预设中的Google gemini 进行对话失败 #3268

Description

@wTNTw

Summary

使用预设中的 Google gemini,使用默认请求格式Gemini (generateContent),填写Google AI Studio生成的api后对话一直报错,提示
AI provider error: Model request failed after 1 attempts: loadCodeAssist failed: HTTP 401 Unauthorized: {
"error": {
"code": 401,
"message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}

Area

Desktop app

Reproduction or evidence

1.使用预设模型提供商Google gemini
2.不修改任何配置,只填写Google AI Studio生成的api
3.由于无法自动获取到模型,手动添加模型
4.开始任意对话并调用gemini后便会报错

Environment, if relevant

version:1.03
commit: 39b27f5
构建日期:2026/09/30 19:56:09
分支:head

日志:过大无法上传

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions