mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
fix: 修复部分账号转发gemini api失败的问题
This commit is contained in:
@@ -366,6 +366,14 @@ async function handleLoadCodeAssist(req, res) {
|
||||
proxyConfig
|
||||
)
|
||||
|
||||
// 如果响应中包含 cloudaicompanionProject,保存到账户作为临时项目 ID
|
||||
if (response.cloudaicompanionProject && !account.projectId) {
|
||||
await geminiAccountService.updateTempProjectId(accountId, response.cloudaicompanionProject)
|
||||
logger.info(
|
||||
`📋 Cached temporary projectId from loadCodeAssist: ${response.cloudaicompanionProject}`
|
||||
)
|
||||
}
|
||||
|
||||
res.json(response)
|
||||
} catch (error) {
|
||||
const version = req.path.includes('v1beta') ? 'v1beta' : 'v1internal'
|
||||
|
||||
Reference in New Issue
Block a user