diff options
| author | Tommaso Sciortino <[email protected]> | 2025-07-21 13:44:43 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-21 20:44:43 +0000 |
| commit | d7a57d85a39535e84bba7e65eb02dcb627b9cb81 (patch) | |
| tree | 6e2a91cc7456429ee73f4d4a189b6632f7b45f5d /packages/core/src/code_assist/codeAssist.ts | |
| parent | f95674e6464659d6f8050215261d96ec44ea2fb1 (diff) | |
Simplify streaming code for code assist server (#4619)
Diffstat (limited to 'packages/core/src/code_assist/codeAssist.ts')
| -rw-r--r-- | packages/core/src/code_assist/codeAssist.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/core/src/code_assist/codeAssist.ts b/packages/core/src/code_assist/codeAssist.ts index 23dfe403..f9c6a7a3 100644 --- a/packages/core/src/code_assist/codeAssist.ts +++ b/packages/core/src/code_assist/codeAssist.ts @@ -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}`); |
