mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
fix: 修复 Antigravity 凭证添加无反应问题 (#16)
- 在 AddCredentialModal 中添加 antigravity 类型的处理逻辑 - 支持 Antigravity 的 Project ID 配置 - 添加默认凭证路径提示
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "proxycast",
|
||||
"private": true,
|
||||
"version": "0.14.5",
|
||||
"version": "0.14.6",
|
||||
"type": "module",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Generated
+1
-1
@@ -3367,7 +3367,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "proxycast"
|
||||
version = "0.14.4"
|
||||
version = "0.14.5"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-stream",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "proxycast"
|
||||
version = "0.14.5"
|
||||
version = "0.14.6"
|
||||
description = "AI API Proxy Desktop App"
|
||||
authors = ["you"]
|
||||
edition = "2021"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "ProxyCast",
|
||||
"version": "0.14.5",
|
||||
"version": "0.14.6",
|
||||
"identifier": "com.proxycast.app",
|
||||
"build": {
|
||||
"beforeDevCommand": "npm run dev",
|
||||
|
||||
@@ -102,6 +102,13 @@ export function AddCredentialModal({
|
||||
case "qwen":
|
||||
await providerPoolApi.addQwenOAuth(credsFilePath, trimmedName);
|
||||
break;
|
||||
case "antigravity":
|
||||
await providerPoolApi.addAntigravityOAuth(
|
||||
credsFilePath,
|
||||
projectId.trim() || undefined,
|
||||
trimmedName,
|
||||
);
|
||||
break;
|
||||
case "codex":
|
||||
await providerPoolApi.addCodexOAuth(credsFilePath, trimmedName);
|
||||
break;
|
||||
@@ -204,6 +211,8 @@ export function AddCredentialModal({
|
||||
"默认路径: ~/.gemini/oauth_creds.json"}
|
||||
{providerType === "qwen" &&
|
||||
"默认路径: ~/.qwen/oauth_creds.json"}
|
||||
{providerType === "antigravity" &&
|
||||
"默认路径: ~/.antigravity/oauth_creds.json"}
|
||||
{providerType === "codex" && "默认路径: ~/.codex/oauth.json"}
|
||||
{providerType === "claude_oauth" &&
|
||||
"默认路径: ~/.claude/oauth.json"}
|
||||
@@ -212,8 +221,9 @@ export function AddCredentialModal({
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Gemini specific: Project ID */}
|
||||
{providerType === "gemini" && (
|
||||
{/* Gemini/Antigravity specific: Project ID */}
|
||||
{(providerType === "gemini" ||
|
||||
providerType === "antigravity") && (
|
||||
<div>
|
||||
<label className="mb-1 block text-sm font-medium">
|
||||
Project ID (可选)
|
||||
|
||||
Reference in New Issue
Block a user