Simplify streaming code for code assist server (#4619)

This commit is contained in:
Tommaso Sciortino
2025-07-21 13:44:43 -07:00
committed by GitHub
parent f95674e646
commit d7a57d85a3
10 changed files with 36 additions and 133 deletions

View File

@@ -21,8 +21,14 @@ export async function createCodeAssistContentGenerator(
authType === AuthType.CLOUD_SHELL
) {
const authClient = await getOauthClient(authType, config);
const projectId = await setupUser(authClient);
return new CodeAssistServer(authClient, projectId, httpOptions, sessionId);
const userData = await setupUser(authClient);
return new CodeAssistServer(
authClient,
userData.projectId,
httpOptions,
sessionId,
userData.userTier,
);
}
throw new Error(`Unsupported authType: ${authType}`);