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 3e805aa753
commit 8b319a8866
10 changed files with 36 additions and 133 deletions
+8 -2
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}`);