diff options
| author | Bryan Morgan <[email protected]> | 2025-07-01 19:16:09 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-01 23:16:09 +0000 |
| commit | dbe88f6e0e8efb989b21fc8b46e0da124f5204ff (patch) | |
| tree | bfb9e5e2f15acd925e24a182086362c68397bde9 /packages/core/src/code_assist/codeAssist.ts | |
| parent | 3492c429b95b7e905cd7cc7538e95b38809cc53e (diff) | |
Added support for session_id in API calls (#2886)
Diffstat (limited to 'packages/core/src/code_assist/codeAssist.ts')
| -rw-r--r-- | packages/core/src/code_assist/codeAssist.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/core/src/code_assist/codeAssist.ts b/packages/core/src/code_assist/codeAssist.ts index c3cb9293..80d95ca9 100644 --- a/packages/core/src/code_assist/codeAssist.ts +++ b/packages/core/src/code_assist/codeAssist.ts @@ -12,11 +12,12 @@ import { CodeAssistServer, HttpOptions } from './server.js'; export async function createCodeAssistContentGenerator( httpOptions: HttpOptions, authType: AuthType, + sessionId?: string, ): Promise<ContentGenerator> { if (authType === AuthType.LOGIN_WITH_GOOGLE) { const authClient = await getOauthClient(); const projectId = await setupUser(authClient); - return new CodeAssistServer(authClient, projectId, httpOptions); + return new CodeAssistServer(authClient, projectId, httpOptions, sessionId); } throw new Error(`Unsupported authType: ${authType}`); |
